Jarves\Controller\Admin\BundleManager\ManagerController::installAction PHP Метод

installAction() публичный Метод

public installAction ( string $bundle, boolean $ormUpdate = null ) : array
$bundle string
$ormUpdate boolean
Результат array
    public function installAction($bundle, $ormUpdate = null)
    {
        $ormUpdate = filter_var($ormUpdate, FILTER_VALIDATE_BOOLEAN);
        Manager::prepareName($bundle);
        $fs = $this->localFilesystem;
        $hasPropelModels = $fs->has($this->jarves->getBundleDir($bundle) . 'Resources/config/models.xml');
        $this->firePackageManager($bundle, 'install');
        //fire update propel orm
        if ($ormUpdate && $hasPropelModels) {
            //update propel
            $this->jarves->getEventDispatcher()->dispatch('core/bundle/schema-update', $bundle);
        }
        $this->activateAction($bundle);
        $this->firePackageManager($bundle, 'install');
        return true;
    }