From b870807e1a71036d7170aae37713ed1560d47de9 Mon Sep 17 00:00:00 2001 From: Dayle Rees Date: Fri, 4 May 2012 19:02:44 +0100 Subject: [PATCH] renamed blade::register to blade::extend Signed-off-by: Dayle Rees --- laravel/blade.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/laravel/blade.php b/laravel/blade.php index 66dd799b..7e6a2469 100644 --- a/laravel/blade.php +++ b/laravel/blade.php @@ -26,7 +26,7 @@ class Blade { 'yield_sections', 'section_start', 'section_end', - 'extra', + 'extensions', ); /** @@ -34,7 +34,7 @@ class Blade { * * @var array */ - protected static $registered = array(); + protected static $extensions = array(); /** * Register the Blade view engine with Laravel. @@ -76,16 +76,16 @@ public static function sharpen() * Register a new blade compiler. * * - * Blade::register(function($view) { + * Blade::extend(function($view) { * return str_replace('thing', 'another_thing', $view); * }); * * * @param closure $compiler */ - public static function register($compiler) + public static function extend($compiler) { - static::$registered[] = $compiler; + static::$extensions[] = $compiler; } /** @@ -416,9 +416,9 @@ protected static function compile_section_end($value) * @param string $value * @return string */ - protected static function compile_extra($value) + protected static function compile_extensions($value) { - foreach (static::$registered as $compiler) + foreach (static::$extensions as $compiler) { $value = $compiler($value); }