Bolt\Configuration\Environment::syncView PHP Method

syncView() public method

Perform a synchronisation of files in specific app/view/ subdirectories.
public syncView ( ) : array | null
return array | null
    public function syncView()
    {
        $views = ['css', 'fonts', 'img', 'js'];
        $response = null;
        foreach ($views as $dir) {
            try {
                $this->syncViewDirectory($dir);
            } catch (IOException $e) {
                $response[] = $e->getMessage();
            } catch (\UnexpectedValueException $e) {
                $response[] = $e->getMessage();
            }
        }
        return $response;
    }