소스 검색

[PropelBundle] Removed old model autoloader

Francois Zaninotto 15 년 전
부모
커밋
d3f9431757
1개의 변경된 파일0개의 추가작업 그리고 21개의 파일을 삭제
  1. 0 21
      src/Symfony/Framework/PropelBundle/Bundle.php

+ 0 - 21
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, '<?php return '.var_export($map, true).';');
-        }
-
-        $autoloader = \PropelAutoloader::getInstance();
-        $autoloader->addClassPaths(include($autoload));
-        $autoloader->register();
-
         $container->getPropelService();
     }
 }