-
-
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.
Allow Symfony 7 and fix incompatibilities
- Loading branch information
Showing
5 changed files
with
20 additions
and
15 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,10 +24,9 @@ | |
* | ||
* @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'; | ||
|
||
private $connection; | ||
private $schema; | ||
|
||
|
@@ -62,7 +62,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,10 +29,9 @@ | |
* | ||
* @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'; | ||
|
||
private $provider; | ||
|
||
public function __construct(MutableAclProviderInterface $provider) | ||
|
@@ -80,7 +80,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