src/Twig.php
private function createLoader(array $paths)
    {
        $loader = new \Twig\Loader\FilesystemLoader();

        foreach ($paths as $namespace => $path) {
            if (is_string($namespace)) {
                $loader->setPaths($path, $namespace);
            } else {
                $loader->addPath($path);
            }
        }

        return $loader;
    }
private function createLoader(array $paths)
    {
        $loader = new \Twig\Loader\FilesystemLoader();

        foreach ($paths as $namespace => $path) {
            if (is_string($namespace)) {
                $loader->setPaths($path, $namespace);
            } else {
                $loader->addPath($path);
            }
        }

        return $loader;
    }
private function createLoader ( array $ paths ) { $ loader = new \ Twig \ Loader \ FilesystemLoader ( ) ; foreach ( $ paths as $ namespace => $ path ) { if ( is_string ( $ namespace ) ) { $ loader -> setPaths ( $ path , $ namespace ) ; } else { $ loader -> addPath ( $ path ) ; } } return $ loader ; }
Create a loader with the given path

@param array $paths
@return \Twig\Loader\FilesystemLoader
Create a loader with the given path