Browse Source

register symfony console namespace with autoloader.

Taylor Otwell 12 years ago
parent
commit
2c12be305d
1 changed files with 15 additions and 0 deletions
  1. 15 0
      laravel/core.php

+ 15 - 0
laravel/core.php

@@ -87,6 +87,21 @@ Autoloader::map(array(
                     => path('sys').'database/eloquent/relationships/has_one_or_many'.EXT,
                     => path('sys').'database/eloquent/relationships/has_one_or_many'.EXT,
 ));
 ));
 
 
+/*
+|--------------------------------------------------------------------------
+| Register The Symfony Components
+|--------------------------------------------------------------------------
+|
+| Laravel's "Artisan" CLI makes use of the Symfony Console component to
+| build a wonderful CLI environment that is both robust and testable.
+| We'll register the component's namespace here.
+|
+*/
+
+Autoloader::namespaces(array(
+	'Symfony\Component\Console' => path('base').'vendor/Symfony/Component/Console',
+));
+
 /*
 /*
 |--------------------------------------------------------------------------
 |--------------------------------------------------------------------------
 | Set The CLI Options Array
 | Set The CLI Options Array