Browse Source

fixed database namespacing.

Taylor Otwell 13 years ago
parent
commit
e0a9f57515

+ 2 - 2
application/config/session.php

@@ -12,7 +12,7 @@ return array(
 	| Since HTTP is stateless, sessions are used to maintain "state" across
 	| multiple requests from the same user of your application.
 	|
-	| Supported Drivers: 'cookie', 'file', 'db', 'memcached', 'apc'.
+	| Supported Drivers: 'cookie', 'file', 'database', 'memcached', 'apc'.
 	|
 	*/
 
@@ -25,7 +25,7 @@ return array(
 	|
 	| The database table on which the session should be stored. 
 	|
-	| This option is only relevant when using the "db" session driver.
+	| This option is only relevant when using the "database" session driver.
 	|
 	*/
 

+ 2 - 2
laravel/database/connector/callback.php

@@ -1,6 +1,6 @@
-<?php namespace Laravel\DB\Connector;
+<?php namespace Laravel\Database\Connector;
 
-use Laravel\DB\Connector;
+use Laravel\Database\Connector;
 
 class Callback extends Connector {
 

+ 1 - 1
laravel/database/connector/factory.php

@@ -1,4 +1,4 @@
-<?php namespace Laravel\DB\Connector;
+<?php namespace Laravel\Database\Connector;
 
 class Factory {
 

+ 2 - 2
laravel/database/connector/mysql.php

@@ -1,6 +1,6 @@
-<?php namespace Laravel\DB\Connector;
+<?php namespace Laravel\Database\Connector;
 
-use Laravel\DB\Connector;
+use Laravel\Database\Connector;
 
 class MySQL extends Connector {
 

+ 2 - 2
laravel/database/connector/postgres.php

@@ -1,6 +1,6 @@
-<?php namespace Laravel\DB\Connector;
+<?php namespace Laravel\Database\Connector;
 
-use Laravel\DB\Connector;
+use Laravel\Database\Connector;
 
 class Postgres extends Connector {
 

+ 2 - 2
laravel/database/connector/sqlite.php

@@ -1,6 +1,6 @@
-<?php namespace Laravel\DB\Connector;
+<?php namespace Laravel\Database\Connector;
 
-use Laravel\DB\Connector;
+use Laravel\Database\Connector;
 
 class SQLite extends Connector {
 

+ 1 - 1
laravel/laravel.php

@@ -23,7 +23,7 @@ unset($laravel, $application, $config, $packages, $public, $storage);
 define('CACHE_PATH',      STORAGE_PATH.'cache/');
 define('CONFIG_PATH',     APP_PATH.'config/');
 define('CONTROLLER_PATH', APP_PATH.'controllers/');
-define('DATABASE_PATH',   STORAGE_PATH.'db/');
+define('DATABASE_PATH',   STORAGE_PATH.'database/');
 define('LANG_PATH',       APP_PATH.'language/');
 define('SCRIPT_PATH',     PUBLIC_PATH.'js/');
 define('SESSION_PATH',    STORAGE_PATH.'sessions/');

+ 3 - 3
laravel/validation/validator.php

@@ -1,7 +1,7 @@
 <?php namespace Laravel\Validation;
 
 use Laravel\Lang;
-use Laravel\DB\Manager as DB;
+use Laravel\Database\Manager as DB;
 
 class Validator {
 
@@ -541,10 +541,10 @@ class Validator {
 	/**
 	 * Set the database connection that should be used by the validator.
 	 *
-	 * @param  DB\Connection  $connection
+	 * @param  Database\Connection  $connection
 	 * @return Validator
 	 */
-	public function connection(DB\Connection $connection)
+	public function connection(Database\Connection $connection)
 	{
 		$this->connection = $connection;
 		return $this;

+ 0 - 0
storage/db/.gitignore → storage/database/.gitignore