Screen\Capture::setBinPath PHP Метод

setBinPath() публичный Метод

Sets the path to PhantomJS binary, example: "/usr/bin"
public setBinPath ( $binPath )
    public function setBinPath($binPath)
    {
        $binPath = rtrim($binPath, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR;
        if (!file_exists($binPath . 'phantomjs') && !file_exists($binPath . 'phantomjs.exe')) {
            throw new \Exception("Bin directory should contain phantomjs or phantomjs.exe file!");
        }
        $this->binPath = $binPath;
    }