Newscoop\Installer\Services\FinishService::reloadRenditions PHP Méthode

reloadRenditions() public méthode

Reload themes reditions in datbase
public reloadRenditions ( )
    public function reloadRenditions()
    {
        $phpFinder = new PhpExecutableFinder();
        $phpPath = $phpFinder->find();
        if (!$phpPath) {
            throw new \RuntimeException('The php executable could not be found, add it to your PATH environment variable and try again');
        }
        $php = escapeshellarg($phpPath);
        $newscoopConsole = escapeshellarg($this->newscoopDir . '/application/console');
        $reloadRenditions = new Process("{$php} {$newscoopConsole} renditions:reload", null, null, null, 300);
        $reloadRenditions->run();
        if (!$reloadRenditions->isSuccessful()) {
            throw new \RuntimeException('An error occurred when executing the Reload renditions command.');
        }
    }