cleaning up.

This commit is contained in:
Taylor Otwell 2012-05-04 13:38:30 -05:00
parent a697781390
commit 70d4746159
1 changed files with 7 additions and 5 deletions

View File

@ -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;
} }