Platformsh\Cli\Local\LocalBuild::runHook PHP 메소드

runHook() 보호된 메소드

Run a user-defined hook.
protected runHook ( string | array $hook, string $dir ) : boolean
$hook string | array
$dir string
리턴 boolean
    protected function runHook($hook, $dir)
    {
        $code = $this->shellHelper->executeSimple(implode("\n", (array) $hook), $dir);
        if ($code !== 0) {
            $this->output->writeln("<comment>The hook failed with the exit code: {$code}</comment>");
            return false;
        }
        return true;
    }