Skip to content

Commit

Permalink
Add support for sonata-project/block-bundle 5
Browse files Browse the repository at this point in the history
  • Loading branch information
core23 committed Jul 20, 2023
1 parent c8841dd commit 063babe
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -42,7 +42,7 @@
"ext-soap": "*",
"nucleos/twig-extensions": "^2.0",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"sonata-project/block-bundle": "^3.23.0 || ^4.5.1",
"sonata-project/block-bundle": "^4.21 || ^5.0",
"sonata-project/doctrine-extensions": "^1.1 || ^2.0",
"sonata-project/form-extensions": "^1.19 || ^2.0",
"symfony/config": "^5.4 || ^6.2",
Expand Down
2 changes: 0 additions & 2 deletions src/Block/Service/SpaceStatisticBlockService.php
Expand Up @@ -59,8 +59,6 @@ public function __construct(Environment $twig, AuthServiceInterface $authService

public function execute(BlockContextInterface $blockContext, Response $response = null): Response
{
\assert(null !== $blockContext->getTemplate());

return $this->renderResponse($blockContext->getTemplate(), [
'context' => $blockContext,
'settings' => $blockContext->getSettings(),
Expand Down

0 comments on commit 063babe

Please sign in to comment.