Browse Source

Rename "register" methods to "extend".

Taylor Otwell 12 years ago
parent
commit
840954eb1d
3 changed files with 3 additions and 3 deletions
  1. 1 1
      laravel/cache.php
  2. 1 1
      laravel/database.php
  3. 1 1
      laravel/session.php

+ 1 - 1
laravel/cache.php

@@ -89,7 +89,7 @@ class Cache {
 	 * @param  Closure  $resolver
 	 * @return void
 	 */
-	public static function register($driver, Closure $resolver)
+	public static function extend($driver, Closure $resolver)
 	{
 		static::$registrar[$driver] = $resolver;
 	}

+ 1 - 1
laravel/database.php

@@ -141,7 +141,7 @@ class Database {
 	 * @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';
 

+ 1 - 1
laravel/session.php

@@ -124,7 +124,7 @@ class Session {
 	 * @param  Closure  $resolver
 	 * @return void
 	 */
-	public static function register($driver, Closure $resolver)
+	public static function extend($driver, Closure $resolver)
 	{
 		static::$registrar[$driver] = $resolver;
 	}