Browse Source

remove composers from ioc container. remove comment bloat from autoloader.

Taylor Otwell 13 years ago
parent
commit
56daba42c5
3 changed files with 1 additions and 11 deletions
  1. 0 4
      laravel/autoloader.php
  2. 0 6
      laravel/config/container.php
  3. 1 1
      laravel/view.php

+ 0 - 4
laravel/autoloader.php

@@ -64,10 +64,6 @@ class Autoloader {
 		// If the namespace has been registered as a PSR-0 compliant library, we will
 		// load the library according to the PSR-0 naming standards, which state that
 		// namespaces and underscores indicate the directory hierarchy of the class.
-		//
-		// The PSR-0 standard is exactly like the typical Laravel standard, the only
-		// difference being that Laravel files are all lowercase, while PSR-0 states
-		// that the file name should match the class name.
 		if (isset(static::$libraries[$library]))
 		{
 			return str_replace('_', '/', $file).EXT;

+ 0 - 6
laravel/config/container.php

@@ -2,12 +2,6 @@
 
 return array(
 
-	'laravel.view.composers' => array('singleton' => true, 'resolver' => function()
-	{
-		return require APP_PATH.'composers'.EXT;
-	}),
-
-
 	'laravel.routing.router' => array('singleton' => true, 'resolver' => function($c)
 	{
 		return new Routing\Router($c->core('routing.loader'), CONTROLLER_PATH);

+ 1 - 1
laravel/view.php

@@ -193,7 +193,7 @@ class View {
 	 */
 	protected static function composers()
 	{
-		static::$composers = IoC::container()->core('view.composers');
+		static::$composers = require APP_PATH.'composers'.EXT;
 	}
 
 	/**