From 840954eb1d6fc15b821b138b985fb4457da7e172 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 30 Apr 2012 22:43:30 -0500 Subject: [PATCH] Rename "register" methods to "extend". --- laravel/cache.php | 2 +- laravel/database.php | 2 +- laravel/session.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/laravel/cache.php b/laravel/cache.php index 28e25eb6..f07ff115 100644 --- a/laravel/cache.php +++ b/laravel/cache.php @@ -89,7 +89,7 @@ protected static function factory($driver) * @param Closure $resolver * @return void */ - public static function register($driver, Closure $resolver) + public static function extend($driver, Closure $resolver) { static::$registrar[$driver] = $resolver; } diff --git a/laravel/database.php b/laravel/database.php index 027efa9c..ac498e3d 100644 --- a/laravel/database.php +++ b/laravel/database.php @@ -141,7 +141,7 @@ public static function profile() * @param Closure $schema * @return void */ - public static function register($name, Closure $connector, $query = null, $schema = null) + public static function extend($name, Closure $connector, $query = null, $schema = null) { if (is_null($query)) $query = '\Laravel\Database\Query\Grammars\Grammar'; diff --git a/laravel/session.php b/laravel/session.php index c6d979e2..42b82935 100644 --- a/laravel/session.php +++ b/laravel/session.php @@ -124,7 +124,7 @@ public static function started() * @param Closure $resolver * @return void */ - public static function register($driver, Closure $resolver) + public static function extend($driver, Closure $resolver) { static::$registrar[$driver] = $resolver; }