Skip to content

Commit

Permalink
Use block-bundle ^5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dmaicher authored and VincentLanglet committed Nov 19, 2023
1 parent 1759f4f commit b78bf53
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"psalm/plugin-phpunit": "^0.18",
"psalm/plugin-symfony": "^5.0",
"rector/rector": "^0.18",
"sonata-project/block-bundle": "^4.2",
"sonata-project/block-bundle": "^5.0",
"sonata-project/entity-audit-bundle": "^1.1",
"symfony/browser-kit": "^5.4 || ^6.2",
"symfony/css-selector": "^5.4 || ^6.2",
Expand Down
1 change: 0 additions & 1 deletion src/Block/AuditBlockService.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function __construct(
public function execute(BlockContextInterface $blockContext, ?Response $response = null): Response
{
$template = $blockContext->getTemplate();
\assert(null !== $template);
$limit = $blockContext->getSetting('limit');
\assert(\is_int($limit));

Expand Down
3 changes: 0 additions & 3 deletions tests/App/AppKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ protected function configureRoutes(RoutingConfigurator $routes): void
$routes->import(sprintf('%s/config/routes.yaml', $this->getProjectDir()));
}

/**
* @psalm-suppress DeprecatedClass
*/
protected function configureContainer(ContainerBuilder $container, LoaderInterface $loader): void
{
$container->setParameter('app.base_dir', $this->getBaseDir());
Expand Down
3 changes: 0 additions & 3 deletions tests/Block/AuditBlockServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,8 @@ public function testDefaultSettings(): void

self::assertSettings([
'attr' => [],
'extra_cache_keys' => [],
'limit' => 10,
'template' => '@SonataDoctrineORMAdmin/Block/block_audit.html.twig',
'ttl' => 0,
'use_cache' => true,
], $blockContext);
}
}

0 comments on commit b78bf53

Please sign in to comment.