function updateConfiguration()
    {
        info('Updating PHP configuration...');

        $contents = $this->files->get($this->fpmConfigPath());

        $contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
        $contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
        $contents = preg_replace('/^listen = .+$/m', 'listen = '.VALET_HOME_PATH.'/valet.sock', $contents);
        $contents = preg_replace('/^;?listen\.owner = .+$/m', 'listen.owner = '.user(), $contents);
        $contents = preg_replace('/^;?listen\.group = .+$/m', 'listen.group = staff', $contents);
        $contents = preg_replace('/^;?listen\.mode = .+$/m', 'listen.mode = 0777', $contents);

        $this->files->put($this->fpmConfigPath(), $contents);


        $contents = $this->files->get(__DIR__.'/../stubs/php-memory-limits.ini');

        $destFile = dirname($this->fpmConfigPath());
        $destFile = str_replace('/php-fpm.d', '', $destFile);
        $destFile .= '/conf.d/php-memory-limits.ini';
        $this->files->ensureDirExists(dirname($destFile), user());

        $this->files->putAsUser($destFile, $contents);
    }
function updateConfiguration()
    {
        info('Updating PHP configuration...');

        $contents = $this->files->get($this->fpmConfigPath());

        $contents = preg_replace('/^user = .+$/m', 'user = '.user(), $contents);
        $contents = preg_replace('/^group = .+$/m', 'group = staff', $contents);
        $contents = preg_replace('/^listen = .+$/m', 'listen = '.VALET_HOME_PATH.'/valet.sock', $contents);
        $contents = preg_replace('/^;?listen\.owner = .+$/m', 'listen.owner = '.user(), $contents);
        $contents = preg_replace('/^;?listen\.group = .+$/m', 'listen.group = staff', $contents);
        $contents = preg_replace('/^;?listen\.mode = .+$/m', 'listen.mode = 0777', $contents);

        $this->files->put($this->fpmConfigPath(), $contents);


        $contents = $this->files->get(__DIR__.'/../stubs/php-memory-limits.ini');

        $destFile = dirname($this->fpmConfigPath());
        $destFile = str_replace('/php-fpm.d', '', $destFile);
        $destFile .= '/conf.d/php-memory-limits.ini';
        $this->files->ensureDirExists(dirname($destFile), user());

        $this->files->putAsUser($destFile, $contents);
    }
function updateConfiguration ( ) { info ( 'Updating PHP configuration...' ) ; $ contents = $ this -> files -> get ( $ this -> fpmConfigPath ( ) ) ; $ contents = preg_replace ( '/^user = .+$/m' , 'user = ' . user ( ) , $ contents ) ; $ contents = preg_replace ( '/^group = .+$/m' , 'group = staff' , $ contents ) ; $ contents = preg_replace ( '/^listen = .+$/m' , 'listen = ' . VALET_HOME_PATH . '/valet.sock' , $ contents ) ; $ contents = preg_replace ( '/^;?listen\.owner = .+$/m' , 'listen.owner = ' . user ( ) , $ contents ) ; $ contents = preg_replace ( '/^;?listen\.group = .+$/m' , 'listen.group = staff' , $ contents ) ; $ contents = preg_replace ( '/^;?listen\.mode = .+$/m' , 'listen.mode = 0777' , $ contents ) ; $ this -> files -> put ( $ this -> fpmConfigPath ( ) , $ contents ) ; $ contents = $ this -> files -> get ( __DIR__ . '/../stubs/php-memory-limits.ini' ) ; $ destFile = dirname ( $ this -> fpmConfigPath ( ) ) ; $ destFile = str_replace ( '/php-fpm.d' , '' , $ destFile ) ; $ destFile .= '/conf.d/php-memory-limits.ini' ; $ this -> files -> ensureDirExists ( dirname ( $ destFile ) , user ( ) ) ; $ this -> files -> putAsUser ( $ destFile , $ contents ) ; }
Update the PHP FPM configuration.

@return void
Update the PHP FPM configuration .