protected function addBinFile(Phar $phar)
    {
        $fileBin = $this->files->combine($this->pathBase, $this->fileNameBin);
        if (! $this->files->exists($fileBin)) {
            return;
        }

        $this->fireEvent('BIN: file main');

        $content = $this->files->get($fileBin);
        $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);
        $phar->addFromString('artisan', $content);
    }
protected function addBinFile(Phar $phar)
    {
        $fileBin = $this->files->combine($this->pathBase, $this->fileNameBin);
        if (! $this->files->exists($fileBin)) {
            return;
        }

        $this->fireEvent('BIN: file main');

        $content = $this->files->get($fileBin);
        $content = preg_replace('{^#!/usr/bin/env php\s*}', '', $content);
        $phar->addFromString('artisan', $content);
    }
protected function addBinFile ( Phar $ phar ) { $ fileBin = $ this -> files -> combine ( $ this -> pathBase , $ this -> fileNameBin ) ; if ( ! $ this -> files -> exists ( $ fileBin ) ) { return ; } $ this -> fireEvent ( 'BIN: file main' ) ; $ content = $ this -> files -> get ( $ fileBin ) ; $ content = preg_replace ( '{^#!/usr/bin/env php\s*}' , '' , $ content ) ; $ phar -> addFromString ( 'artisan' , $ content ) ; }
Adicionar arquivo BIN.
@param Phar $phar
Adicionar arquivo BIN .