Hi All,

I'm just learning about ZF2 and need to make sure I'm using the service
manager abstract factory configuration in application.config.php correctly
before I start jumping up and down and pointing out a bug.

I'm using the Zend Skeletion Application as a base. In the
application.config.php file on the bottom is a config stub for the service
manager with the explanation that it will be the initial configuration to
seed the ServiceManager. I took this as a "place things here so you don't
have to repeat it in modules". Is this correct?

So what I did is move the base abstract factory configuration from
Application's module config over to application.config.php. As soon as this
was done and I tested it. I started getting out of memory errors from PHP.
I went in to php.ini and changed the memory from 128M to 256M and tested
again. It still used up the memory.

To try and trace the stack and see what's going on I installed xdebug and
set it up. I kept on running in to max nesting level errors. Hence the
thought that there is an infinite loop when abstract factories are placed
in application.config.php. Take it out and put that configuration back in
to module.config.php and the problem stops.

I attached my log configuration for your viewing pleasure just in case that
is the problem and I did something wrong there.

Jamie

<<attachment: log.global.php>>

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]

Reply via email to