Skip to content
This repository has been archived by the owner on Nov 27, 2020. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
updated autoloader
  • Loading branch information
fabpot committed May 31, 2011
1 parent 9ad57d5 commit 267dec4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.rst
Expand Up @@ -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.
Expand Down
8 changes: 5 additions & 3 deletions app/autoload.php
Expand Up @@ -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)
Expand Down

0 comments on commit 267dec4

Please sign in to comment.