1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
| Exception detected!
Cannot import resource "'@MyappFimothequeBundle/Resources/config/routing.yml'" from "'C:\\wamp\\www\\Symfony2\\app/config\\routing.yml'".
500 Internal Server Error - FileLoaderImportException
1 linked Exception:
* InvalidArgumentException »
[2/2] FileLoaderImportException: Cannot import resource "'@MyappFimothequeBundle/Resources/config/routing.yml'" from "'C:\\wamp\\www\\Symfony2\\app/config\\routing.yml'". -+
1. in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Config\Loader\FileLoader.php at line 74 -+
71. throw $e;
72. }
73.
74. throw new FileLoaderImportException($resource, $sourceResource, null, $e);
75. }
76. }
77. }
2. at FileLoader ->import ('@MyappFimothequeBundle/Resources/config/routing.yml', null, false, 'C:\wamp\www\Symfony2\app/config\routing.yml')
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Routing\Loader\YamlFileLoader.php at line 67 -+
64. $type = isset($config['type']) ? $config['type'] : null;
65. $prefix = isset($config['prefix']) ? $config['prefix'] : null;
66. $this->setCurrentDir(dirname($path));
67. $collection->addCollection($this->import($config['resource'], $type, false, $file), $prefix);
68. } elseif (isset($config['pattern'])) {
69. $this->parseRoute($collection, $name, $config, $path);
70. } else {
3. at YamlFileLoader ->load ('C:\wamp\www\Symfony2\app/config\routing.yml')
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Config\Loader\FileLoader.php at line 66 -+
63. $resource = $this->locator->locate($resource, $this->currentDir);
64. }
65.
66. return $loader->load($resource);
67. } catch (\Exception $e) {
68. if (!$ignoreErrors) {
69. // prevent embedded imports from nesting multiple exceptions
4. at FileLoader ->import ('routing.yml', null, false, 'C:\wamp\www\Symfony2\app/config/routing_dev.yml')
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Routing\Loader\YamlFileLoader.php at line 67 -+
64. $type = isset($config['type']) ? $config['type'] : null;
65. $prefix = isset($config['prefix']) ? $config['prefix'] : null;
66. $this->setCurrentDir(dirname($path));
67. $collection->addCollection($this->import($config['resource'], $type, false, $file), $prefix);
68. } elseif (isset($config['pattern'])) {
69. $this->parseRoute($collection, $name, $config, $path);
70. } else {
5. at YamlFileLoader ->load ('C:\wamp\www\Symfony2\app/config/routing_dev.yml', null)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Config\Loader\DelegatingLoader.php at line 50 -+
47. throw new \InvalidArgumentException(sprintf('Unable to load the "%s" resource.', is_string($resource) ? $resource : (is_object($resource) ? get_class($resource) : 'RESOURCE')));
48. }
49.
50. return $loader->load($resource, $type);
51. }
52.
53. /**
6. at DelegatingLoader ->load ('C:\wamp\www\Symfony2\app/config/routing_dev.yml', null)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Routing\DelegatingLoader.php at line 57 -+
54. */
55. public function load($resource, $type = null)
56. {
57. $collection = parent::load($resource, $type);
58.
59. foreach ($collection->all() as $name => $route) {
60. if ($controller = $route->getDefault('_controller')) {
7. at DelegatingLoader ->load ('C:\wamp\www\Symfony2\app/config/routing_dev.yml', null)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Routing\LazyLoader.php at line 50 -+
47. */
48. public function load($resource, $type = null)
49. {
50. return $this->container->get($this->service)->load($resource, $type);
51. }
52.
53. /**
8. at LazyLoader ->load ('C:\wamp\www\Symfony2\app/config/routing_dev.yml', null)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Routing\Router.php at line 96 -+
93. public function getRouteCollection()
94. {
95. if (null === $this->collection) {
96. $this->collection = $this->loader->load($this->resource, $this->options['resource_type']);
97. }
98.
99. return $this->collection;
9. at Router ->getRouteCollection ()
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Routing\Router.php at line 171 -+
168. $class = $this->options['matcher_cache_class'];
169. $cache = new ConfigCache($this->options['cache_dir'].'/'.$class.'.php', $this->options['debug']);
170. if (!$cache->isFresh($class)) {
171. $dumper = new $this->options['matcher_dumper_class']($this->getRouteCollection());
172.
173. $options = array(
174. 'class' => $class,
10. at Router ->getMatcher ()
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\Routing\Router.php at line 111 -+
108. {
109. $this->context = $context;
110.
111. $this->getMatcher()->setContext($context);
112. $this->getGenerator()->setContext($context);
113. }
114.
11. at Router ->setContext (object(RequestContext))
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\RequestListener.php at line 93 -+
90. $context->setParameter('_locale', $session->getLocale());
91. }
92.
93. $this->router->setContext($context);
94. }
95.
96. if ($request->attributes->has('_controller')) {
12. at RequestListener ->initializeRequestAttributes (object(Request), true)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\RequestListener.php at line 55 -+
52.
53. $this->initializeSession($request, $master);
54.
55. $this->initializeRequestAttributes($request, $master);
56. }
57.
58. protected function initializeSession(Request $request, $master)
13. at RequestListener ->onCoreRequest (object(GetResponseEvent))
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php at line 179 -+
176. if ($listener instanceof \Closure) {
177. $listener->__invoke($event);
178. } else {
179. $listener->$eventName($event);
180. }
181. }
182.
14. at EventDispatcher ->triggerListener (object(RequestListener), 'onCoreRequest', object(GetResponseEvent))
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\Debug\TraceableEventDispatcher.php at line 73 -+
70. */
71. protected function triggerListener($listener, $eventName, Event $event)
72. {
73. parent::triggerListener($listener, $eventName, $event);
74.
75. if (null !== $this->logger) {
76. $this->logger->debug(sprintf('Notified event "%s" to listener "%s".', $eventName, get_class($listener)));
15. at TraceableEventDispatcher ->triggerListener (object(RequestListener), 'onCoreRequest', object(GetResponseEvent))
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Component\EventDispatcher\EventDispatcher.php at line 62 -+
59. }
60.
61. foreach ($this->getListeners($eventName) as $listener) {
62. $this->triggerListener($listener, $eventName, $event);
63.
64. if ($event->isPropagationStopped()) {
65. break;
16. at EventDispatcher ->dispatch ('onCoreRequest', object(GetResponseEvent))
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\ContainerAwareEventDispatcher.php at line 101 -+
98. }
99. }
100.
101. parent::dispatch($eventName, $event);
102. }
103. }
104.
17. at ContainerAwareEventDispatcher ->dispatch ('onCoreRequest', object(GetResponseEvent))
in C:\wamp\www\Symfony2\app\bootstrap.php.cache at line 431 -+
428. private function handleRaw(Request $request, $type = self::MASTER_REQUEST)
429. {
430. $event = new GetResponseEvent($this, $request, $type);
431. $this->dispatcher->dispatch(Events::onCoreRequest, $event);
432. if ($event->hasResponse()) {
433. return $this->filterResponse($event->getResponse(), $request, $type);
434. }
18. at HttpKernel ->handleRaw (object(Request), '1')
in C:\wamp\www\Symfony2\app\bootstrap.php.cache at line 420 -+
417. public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
418. {
419. try {
420. return $this->handleRaw($request, $type);
421. } catch (\Exception $e) {
422. if (false === $catch) {
423. throw $e;
19. at HttpKernel ->handle (object(Request), '1', true)
in C:\wamp\www\Symfony2\vendor\symfony\src\Symfony\Bundle\FrameworkBundle\HttpKernel.php at line 35 -+
32. $this->container->set('request', $request, 'request');
33.
34. try {
35. $response = parent::handle($request, $type, $catch);
36. } catch (\Exception $e) {
37. $this->container->leaveScope('request');
38.
20. at HttpKernel ->handle (object(Request), '1', true)
in C:\wamp\www\Symfony2\app\bootstrap.php.cache at line 613 -+
610. if (false === $this->booted) {
611. $this->boot();
612. }
613. return $this->getHttpKernel()->handle($request, $type, $catch);
614. }
615. protected function getHttpKernel()
616. {
21. at Kernel ->handle (object(Request))
in C:\wamp\www\Symfony2\web\app_dev.php at line 20 -+
17.
18. $kernel = new AppKernel('dev', true);
19. $kernel->loadClassCache();
20. $kernel->handle(Request::createFromGlobals())->send();
21.
[1/2] InvalidArgumentException: Bundle "MyappFimothequeBundle" does not exist or it is not enabled. Maybe you forgot to add it in the registerBundles() function of your AppKernel.php file? - |
Partager