I got similar error in Zend framework and i noticed that if i change the module name to be something different than 'public' it works. Seems "Public" is reserved word in PHP and can't be used for namespaces. Hope this helps