Permalink
Browse files

updated autoloader

  • Loading branch information...
1 parent 9ad57d5 commit 267dec43364f3f5388e23379d6a91f7eb9c8aa1b @fabpot fabpot committed May 31, 2011
Showing with 5 additions and 4 deletions.
  1. +0 −1 README.rst
  2. +5 −3 app/autoload.php
View
@@ -72,7 +72,6 @@ playing with it, you can remove it by following these steps:
* delete the ``src/Acme`` directory;
* remove the routing entries referencing AcmeBundle in ``app/config/routing_dev.yml``;
* remove the AcmeBundle from the registered bundles in ``app/AppKernel.php``;
-* remove the Acme registered namespace in ``app/autoload.php``.
Configure the distribution by editing ``app/config/parameters.ini`` or by
accessing ``web/config.php`` in a browser.
View
@@ -13,16 +13,18 @@
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
- 'Acme' => __DIR__.'/../src',
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
'Twig_' => __DIR__.'/../vendor/twig/lib',
));
-$loader->register();
-$loader->registerPrefixFallback(array(
+$loader->registerPrefixFallbacks(array(
__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs',
));
+$loader->registerNamespaceFallbacks(array(
+ __DIR__.'/../src',
+));
+$loader->register();
// Swiftmailer needs a special autoloader to allow
// the lazy loading of the init file (which is expensive)

0 comments on commit 267dec4

Please sign in to comment.