-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature #45 Allow Symfony 7 and fix incompatibilities (acrobat)
This PR was merged into the main branch. Discussion ---------- Allow Symfony 7 and fix incompatibilities Finished PR #44 Commits ------- 2e5827d Allow Symfony 7 and fix incompatibilities
- Loading branch information
Showing
5 changed files
with
21 additions
and
12 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ | |
|
||
use Doctrine\DBAL\Connection; | ||
use Doctrine\DBAL\Schema\SchemaException; | ||
use Symfony\Component\Console\Attribute\AsCommand; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
@@ -23,6 +24,7 @@ | |
* | ||
* @author Johannes M. Schmitt <[email protected]> | ||
*/ | ||
#[AsCommand(name: 'acl:init', description: 'Creates ACL tables in the database')] | ||
final class InitAclCommand extends Command | ||
{ | ||
protected static $defaultName = 'acl:init'; | ||
|
@@ -41,7 +43,7 @@ public function __construct(Connection $connection, Schema $schema) | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function configure() | ||
protected function configure(): void | ||
{ | ||
$this | ||
->setDescription('Creates ACL tables in the database') | ||
|
@@ -62,7 +64,7 @@ protected function configure() | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
try { | ||
$this->schema->addToSchema($this->connection->getSchemaManager()->createSchema()); | ||
|
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 |
---|---|---|
|
@@ -11,6 +11,7 @@ | |
|
||
namespace Symfony\Bundle\AclBundle\Command; | ||
|
||
use Symfony\Component\Console\Attribute\AsCommand; | ||
use Symfony\Component\Console\Command\Command; | ||
use Symfony\Component\Console\Input\InputArgument; | ||
use Symfony\Component\Console\Input\InputInterface; | ||
|
@@ -28,6 +29,7 @@ | |
* | ||
* @author Kévin Dunglas <[email protected]> | ||
*/ | ||
#[AsCommand(name: 'acl:set', description: 'Sets ACL for objects')] | ||
final class SetAclCommand extends Command | ||
{ | ||
protected static $defaultName = 'acl:set'; | ||
|
@@ -80,7 +82,7 @@ protected function configure() | |
/** | ||
* {@inheritdoc} | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
protected function execute(InputInterface $input, OutputInterface $output): int | ||
{ | ||
// Parse arguments | ||
$objectIdentities = []; | ||
|
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