Acl\Shell\AclExtrasShell::startup PHP Méthode

startup() public méthode

Start up And load Acl Component / Aco model
public startup ( ) : void
Résultat void
    public function startup()
    {
        parent::startup();
        $this->AclExtras->startup();
        $this->AclExtras->Shell = $this;
        if ($this->command) {
            try {
                \Cake\ORM\TableRegistry::get('Aros')->schema();
            } catch (\Cake\Database\Exception $e) {
                $this->out(__d('cake_acl', 'Acl database tables not found. To create them, run:'));
                $this->out();
                $this->out('  bin/cake Migrations.migrations migrate -p Acl');
                $this->out();
                $this->_stop();
            }
        }
    }