-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for SonataBlockBundle 4.x
Update UPGRADE-3.x.md Co-authored-by: Grégoire Paris <[email protected]>
- Loading branch information
Showing
3 changed files
with
12 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ | |
use Twig\Environment; | ||
|
||
/** | ||
* @final since sonata-project/doctrine-orm-admin-bundle 3.x | ||
* | ||
* @author Thomas Rabaix <[email protected]> | ||
*/ | ||
class AuditBlockService extends AbstractBlockService | ||
|
@@ -92,7 +94,7 @@ public function __construct($templatingOrDeprecatedName, object $templatingOrAud | |
} | ||
} | ||
|
||
public function execute(BlockContextInterface $blockContext, ?Response $response = null) | ||
public function execute(BlockContextInterface $blockContext, ?Response $response = null): Response | ||
{ | ||
$revisions = []; | ||
|
||
|
@@ -119,7 +121,7 @@ public function getName() | |
return 'Audit List'; | ||
} | ||
|
||
public function configureSettings(OptionsResolver $resolver) | ||
public function configureSettings(OptionsResolver $resolver): void | ||
{ | ||
$resolver->setDefaults([ | ||
'limit' => 10, | ||
|