src/Commands/CompilerCommand.php
protected function runScripts($keyList)
    {
        $this->info('Run scripts');
        $this->laravel->configure('phar');
        $scripts = $this->laravel['config']->get($keyList, []);
        foreach ($scripts as $item) {
            try {
                $this->info('..' . $item);
                $out = [];
                exec($item, $out);
                $this->info('  ' . trim(implode("\r\n", $out)));
            } catch (\Exception $e) {
                $this->error(sprintf("Error build: %s\r\nMessage: %s", $item, $e->getMessage()));
            }
        }
    }
protected function runScripts($keyList)
    {
        $this->info('Run scripts');
        $this->laravel->configure('phar');
        $scripts = $this->laravel['config']->get($keyList, []);
        foreach ($scripts as $item) {
            try {
                $this->info('..' . $item);
                $out = [];
                exec($item, $out);
                $this->info('  ' . trim(implode("\r\n", $out)));
            } catch (\Exception $e) {
                $this->error(sprintf("Error build: %s\r\nMessage: %s", $item, $e->getMessage()));
            }
        }
    }
protected function runScripts ( $ keyList ) { $ this -> info ( 'Run scripts' ) ; $ this -> laravel -> configure ( 'phar' ) ; $ scripts = $ this -> laravel [ 'config' ] -> get ( $ keyList , [ ] ) ; foreach ( $ scripts as $ item ) { try { $ this -> info ( '..' . $ item ) ; $ out = [ ] ; exec ( $ item , $ out ) ; $ this -> info ( '  ' . trim ( implode ( "\r\n" , $ out ) ) ) ; } catch ( \ Exception $ e ) { $ this -> error ( sprintf ( "Error build: %s\r\nMessage: %s" , $ item , $ e -> getMessage ( ) ) ) ; } } }
Executar scripts.
@param $keyList
Executar scripts .