\Greg\View\ViewCompilerStrategy
is an extended Compiler Strategy of custom compilers, specially for the Viewer Contract.
Extends: \Greg\View\CompilerStrategy
.
Example:
class FooCompiler extends \Greg\View\BladeCompiler implements \Greg\View\ViewCompilerStrategy
{
public function addViewDirective($name)
{
// @todo add a directive that was already registered in the Viewer.
}
}
Includes Compiler Strategy methods.
- addViewDirective - Add a directive that was already registered in the Viewer Contract, but not in the compiler.
Add a directive that was already registered in the Viewer Contract, but not in the compiler.