public static function createWithConfig(array $config = []) {
        $plates = new self();

        $plates->register(new PlatesExtension());
        $plates->register(new Extension\Data\DataExtension());
        $plates->register(new Extension\Path\PathExtension());
        $plates->register(new Extension\RenderContext\RenderContextExtension());
        $plates->register(new Extension\LayoutSections\LayoutSectionsExtension());
        $plates->register(new Extension\Folders\FoldersExtension());

        $plates->addConfig($config);

        return $plates;
    }
public static function createWithConfig(array $config = []) {
        $plates = new self();

        $plates->register(new PlatesExtension());
        $plates->register(new Extension\Data\DataExtension());
        $plates->register(new Extension\Path\PathExtension());
        $plates->register(new Extension\RenderContext\RenderContextExtension());
        $plates->register(new Extension\LayoutSections\LayoutSectionsExtension());
        $plates->register(new Extension\Folders\FoldersExtension());

        $plates->addConfig($config);

        return $plates;
    }
public static function createWithConfig ( array $ config = [ ] ) { $ plates = new self ( ) ; $ plates -> register ( new PlatesExtension ( ) ) ; $ plates -> register ( new Extension \ Data \ DataExtension ( ) ) ; $ plates -> register ( new Extension \ Path \ PathExtension ( ) ) ; $ plates -> register ( new Extension \ RenderContext \ RenderContextExtension ( ) ) ; $ plates -> register ( new Extension \ LayoutSections \ LayoutSectionsExtension ( ) ) ; $ plates -> register ( new Extension \ Folders \ FoldersExtension ( ) ) ; $ plates -> addConfig ( $ config ) ; return $ plates ; }
Create a configured engine and pass in an array to configure after extension registration
Create a configured engine and pass in an array to configure after extension registration