public function actionIndex($configFile = false)
    {
        echo "Start building PHAR package...\n";

        $this->loadConfiguration($configFile);

        $this->clean(false);

        $phar = new \Phar(\Yii::getAlias($this->module->path), 0, $this->module->pharName);

        Builder::addFilesFromIterator($phar, $this->module);
        Builder::addStub($phar, $this->module->stub);
        Builder::addCompress($phar, $this->module->compress);
        Builder::addSignature($phar, $this->module->signature, $this->module->openSSLPrivateKeyAlias);

        echo "\n\nFinish\n";
    }
public function actionIndex($configFile = false)
    {
        echo "Start building PHAR package...\n";

        $this->loadConfiguration($configFile);

        $this->clean(false);

        $phar = new \Phar(\Yii::getAlias($this->module->path), 0, $this->module->pharName);

        Builder::addFilesFromIterator($phar, $this->module);
        Builder::addStub($phar, $this->module->stub);
        Builder::addCompress($phar, $this->module->compress);
        Builder::addSignature($phar, $this->module->signature, $this->module->openSSLPrivateKeyAlias);

        echo "\n\nFinish\n";
    }
public function actionIndex ( $ configFile = false ) { echo "Start building PHAR package...\n" ; $ this -> loadConfiguration ( $ configFile ) ; $ this -> clean ( false ) ; $ phar = new \ Phar ( \ Yii :: getAlias ( $ this -> module -> path ) , 0 , $ this -> module -> pharName ) ; Builder :: addFilesFromIterator ( $ phar , $ this -> module ) ; Builder :: addStub ( $ phar , $ this -> module -> stub ) ; Builder :: addCompress ( $ phar , $ this -> module -> compress ) ; Builder :: addSignature ( $ phar , $ this -> module -> signature , $ this -> module -> openSSLPrivateKeyAlias ) ; echo "\n\nFinish\n" ; }
Action of building phar archive.

@param string|bool $configFile Path to external file configuration.

@throws \Exception Probably wrong configuration or no rights.
Action of building phar archive .