Forgot to mention i tried that way.
Fatal error: Uncaught exception
'Zend\ModuleManager\Exception\RuntimeException' with message 'Module
(DoctrineModule) could not be initialized.' in
Z:\fz\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php:140
Stack trace:
#0
Z:\fz\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(81):
Zend\ModuleManager\ModuleManager->loadModule('DoctrineModule')
#1 [internal function]:
Zend\ModuleManager\ModuleManager->onLoadModules(Object(Zend\ModuleManager\ModuleEvent))
#2
Z:\fz\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(472):
call_user_func(Array, Object(Zend\ModuleManager\ModuleEvent))
#3
Z:\fz\vendor\zendframework\zendframework\library\Zend\EventManager\EventManager.php(207):
Zend\EventManager\EventManager->triggerListeners('loadModules',
Object(Zend\ModuleManager\ModuleEvent), NULL)
#4
Z:\fz\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php(100):
Zend\EventManager\EventManager->trigger('loadModules', Object(Ze in
Z:\fz\vendor\zendframework\zendframework\library\Zend\ModuleManager\ModuleManager.php
on line 140
But say I change
'modules' => array(
'BjyProfiler',
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'ZfcBase',
'ZfcUser',
'ZfcUserDoctrineORM',
'Application',
'Blog',
),
to
'modules' => array(
'ZfcBase',
'BjyProfiler',
'ZendDeveloperTools',
'DoctrineModule',
'DoctrineORMModule',
'ZfcUser',
'ZfcUserDoctrineORM',
'Application',
'Blog',
),
Then the error is not about Doctrine, is about ZfcBase (the first module
that needs load from ./vendor).
config:
https://github.com/screws0ft/fz/blob/master/module/Blog/tests/config/test/application.config.php
Marco Pivetta wrote
> You may want to check
> http://stackoverflow.com/questions/14768621/zend-framework-2-tutorial-module-application-could-not-be-initialized
>
> Also: what is the exact exception?
>
> Marco Pivetta
>
> http://twitter.com/Ocramius
>
> http://ocramius.github.com/
>
>
> On 17 April 2013 18:09, Katalin [via Zend Framework Community] <
> [email protected]
>> wrote:
>
>> Hi
>> I did some tests, created the module Blog, did some more tests and it all
>> passed. I had to add doctrine to the module Blog and now i need more
>> tests.
>> My config.php for BlogTests seems to be okey - all directories exists,
>> even
>> "vendor" but the autoloader seems it doesn't load the module
>> DoctrineORMModule. The problem actually is it doesn't load even a single
>> module from "vendor", anyway I can priorities them in "'modules' =>
>> array(". Is there some kind of problem from autoloader caused by
>> composer?
>> Here are the tests:
>> https://github.com/screws0ft/fz/tree/master/module/Blog/tests
>> Thank you
>>
>> ------------------------------
>> If you reply to this email, your message will be added to the discussion
>> below:
>>
>> http://zend-framework-community.634137.n4.nabble.com/zf2-tests-can-t-load-vendor-modules-tp4659745.html
>> To start a new topic under Zend Framework, email
>>
> [email protected]
>> To unsubscribe from Zend Framework Community, click
>> here<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=634137&code=b2NyYW1pdXNAZ21haWwuY29tfDYzNDEzN3wxNzE0OTI1MTk4>
>> .
>> NAML<http://zend-framework-community.634137.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>>
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/zf2-tests-can-t-load-vendor-modules-tp4659745p4659747.html
Sent from the Zend Framework mailing list archive at Nabble.com.
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]