Release 2.35 (#5470)

* open up API for plugins by removing internal
* use constants in entity column definition
* simplified entity management API
* bump packages
* allow installing assets and run database migrations independently
* bump to apidoc-bundle 5
* do not duplicate http method in API operationId
* new security entries in Open API definition
* changed API UI provider for Swagger to Stoplight, improved endpoint titles, hide internal endpoints
* deactivate swagger json endpoint
This commit is contained in:
Kevin Papst
2025-05-24 14:28:39 +02:00
committed by GitHub
parent 6e26a37c4d
commit 1e0fbf0b73
63 changed files with 518 additions and 529 deletions

View File

@@ -16,7 +16,6 @@ use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Exception\LogicException;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symfony\Component\Console\Tester\CommandTester;
/**
@@ -62,17 +61,6 @@ class BundleInstallerCommandTest extends KernelTestCase
self::assertEquals(1, $commandTester->getStatusCode());
}
public function testAssetsInstallationFailure(): void
{
$command = $this->getCommand(AssetsInstallerFailureCommand::class);
$commandTester = new CommandTester($command);
$commandTester->execute(['command' => $command->getName()]);
$result = $commandTester->getDisplay();
self::assertStringContainsString('[ERROR] Failed to install assets for bundle TestBundle.', $result);
self::assertEquals(1, $commandTester->getStatusCode());
}
public function testInvalidNamespaceWillRaiseException(): void
{
$this->expectException(LogicException::class);
@@ -162,19 +150,6 @@ class InstallerWithMissingMigrationsCommand extends TestBundleInstallerCommand
}
}
class AssetsInstallerFailureCommand extends TestBundleInstallerCommand
{
protected function hasAssets(): bool
{
return true;
}
protected function installAssets(SymfonyStyle $io, OutputInterface $output): void
{
throw new \Exception('Problem occurred while installing assets.');
}
}
class InstallerWithAssetsCommand extends TestBundleInstallerCommand
{
protected function hasAssets(): bool