cleaning up.
This commit is contained in:
parent
a697781390
commit
70d4746159
|
@ -73,17 +73,19 @@ public static function sharpen()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Register a new blade compiler.
|
* Register a custom Blade compiler.
|
||||||
*
|
*
|
||||||
* <code>
|
* <code>
|
||||||
* Blade::extend(function($view) {
|
* Blade::extend(function($view)
|
||||||
* return str_replace('thing', 'another_thing', $view);
|
* {
|
||||||
|
* return str_replace('foo', 'bar', $view);
|
||||||
* });
|
* });
|
||||||
* </code>
|
* </code>
|
||||||
*
|
*
|
||||||
* @param closure $compiler
|
* @param Closure $compiler
|
||||||
|
* @return void
|
||||||
*/
|
*/
|
||||||
public static function extend($compiler)
|
public static function extend(Closure $compiler)
|
||||||
{
|
{
|
||||||
static::$extensions[] = $compiler;
|
static::$extensions[] = $compiler;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue