From d3f9431757a3b8783810bd2861e304d30b59593e Mon Sep 17 00:00:00 2001 From: Francois Zaninotto Date: Mon, 7 Jun 2010 21:58:12 +0200 Subject: [PATCH] [PropelBundle] Removed old model autoloader --- src/Symfony/Framework/PropelBundle/Bundle.php | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/src/Symfony/Framework/PropelBundle/Bundle.php b/src/Symfony/Framework/PropelBundle/Bundle.php index b6e33d42d0..b8d76d675c 100644 --- a/src/Symfony/Framework/PropelBundle/Bundle.php +++ b/src/Symfony/Framework/PropelBundle/Bundle.php @@ -23,27 +23,6 @@ class Bundle extends BaseBundle set_include_path($container->getParameter('propel.phing_path').'/classes'.PATH_SEPARATOR.get_include_path()); } - $kernel = $container->getKernelService(); - if (!file_exists($autoload = $kernel->getCacheDir().'/propel_autoload.php')) { - $map = array(); - foreach ($kernel->getBundles() as $bundle) { - if (!file_exists($file = $bundle->getPath().'/Resources/config/classmap.php')) { - continue; - } - - $local = include($file); - foreach ($local as $class => $path) { - $map[$class] = $bundle->getPath().'/'.$path; - } - } - - file_put_contents($autoload, 'addClassPaths(include($autoload)); - $autoloader->register(); - $container->getPropelService(); } }