Skip to content

Commit 558b10a

Browse files
committed
Add initAcls command
1 parent 1e49bc2 commit 558b10a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Ubiquity/devtools/cmd/Command.php

+10
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,15 @@ public static function createCommand() {
548548
], 'system');
549549
}
550550

551+
public static function initAcls() {
552+
return new Command('init-acls', '', 'Initialize Acls defined with annotations in controllers.', [
553+
'init:acls',
554+
'initAcls'
555+
], [], [
556+
'Initialize Acls' => 'Ubiquity initAcls'
557+
], 'security');
558+
}
559+
551560
protected static function getCustomCommandInfos() {
552561
$result = [];
553562
$commands = self::getCustomCommands();
@@ -652,6 +661,7 @@ public static function getCommands() {
652661
self::newMail(),
653662
self::sendMails(),
654663
self::createCommand(),
664+
self::initAcls(),
655665
...self::getCustomCommandInfos()
656666
];
657667
}

0 commit comments

Comments
 (0)