title: I have a Fatal Error with in creation new Module in ZF2
body: <p>Fatal
  Zend\Mvc\Controller\ControllerManager::createFromInvokable: failed retrieving "catalogcontrollerindex(alias: Catalog\Controller\Index)" via invokable class "Catalog\Controller\IndexController"; class does not exist
  This is my code
  Module.php</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>namespace Catalog;
  
  class Module
  {
    public function getAutoloaderConfig()
  {
      return array(
          'Zend\Loader\StandardAutoloader' =&gt; array(
              'namespaces' =&gt; array(
                  __NAMESPACE__ =&gt; __DIR__ . '/src/' . __NAMESPACE__,
              ),
          ),
      );
  }
  
  
    public function getConfig()
    {
      return include __DIR__ . '/config/module.config.php';
    }
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Module.config.php</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>namespace Catalog;
  
  return array(
   // Doctrine config
      'doctrine' =&gt; array(
          'driver' =&gt; array(
              __NAMESPACE__ . '_driver' =&gt; array(
                  'class' =&gt; 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
                  'cache' =&gt; 'array',
                  'paths' =&gt; array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Entity')
              ),
              'orm_default' =&gt; array(
                  'drivers' =&gt; array(
                      __NAMESPACE__ . '\Entity' =&gt; __NAMESPACE__ . '_driver'
                  )
              )
          )),
      'router' =&gt; array(
          'routes' =&gt; array(
              'home' =&gt; array(
                  'type' =&gt; 'Zend\Mvc\Router\Http\Literal',
                  'options' =&gt; array(
                      'route'    =&gt; '/',
                      'defaults' =&gt; array(
                          'controller' =&gt; 'Catalog\Controller\Index',
                          'action'     =&gt; 'index',
                      ),
                  ),
              ),
              // The following is a route to simplify getting started creating
              // new controllers and actions without needing to create a new
              // module. Simply drop new controllers in, and you can access them
              // using the path /application/:controller/:action
              'application' =&gt; array(
                  'type'    =&gt; 'Literal',
                  'options' =&gt; array(
                      'route'    =&gt; '/catalog',
                      'defaults' =&gt; array(
                          '__NAMESPACE__' =&gt; 'Catalog\Controller',
                          'controller'    =&gt; 'Index',
                          'action'        =&gt; 'index',
                      ),
                  ),
                  'may_terminate' =&gt; true,
                  'child_routes' =&gt; array(
                      'default' =&gt; array(
                          'type'    =&gt; 'Segment',
                          'options' =&gt; array(
                              'route'    =&gt; '/[:controller[/:action]]',
                              'constraints' =&gt; array(
                                  'controller' =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                                  'action'     =&gt; '[a-zA-Z][a-zA-Z0-9_-]*',
                              ),
                              'defaults' =&gt; array(
                              ),
                          ),
                      ),
                  ),
              ),
          ),
      ),
      'service_manager' =&gt; array(
          'abstract_factories' =&gt; array(
              'Zend\Cache\Service\StorageCacheAbstractServiceFactory',
              'Zend\Log\LoggerAbstractServiceFactory',
          ),
          'factories' =&gt; array(
              'translator' =&gt; 'Zend\Mvc\Service\TranslatorServiceFactory',
          ),
      ),
      'translator' =&gt; array(
          'locale' =&gt; 'en_US',
          'translation_file_patterns' =&gt; array(
              array(
                  'type'     =&gt; 'gettext',
                  'base_dir' =&gt; __DIR__ . '/../language',
                  'pattern'  =&gt; '%s.mo',
              ),
          ),
      ),
      'controllers' =&gt; array(
          'invokables' =&gt; array(
              'Catalog\Controller\Index' =&gt; Controller\IndexController::class
          ),
      ),
      'view_manager' =&gt; array(
          'display_not_found_reason' =&gt; true,
          'display_exceptions'       =&gt; true,
          'doctype'                  =&gt; 'HTML5',
          'not_found_template'       =&gt; 'error/404',
          'exception_template'       =&gt; 'error/index',
          'template_map' =&gt; array(
              'layout/layout'           =&gt; __DIR__ . '/../view/layout/layout.phtml',
              'catalog/index/index' =&gt; __DIR__ . '/../view/catalog/index/index.phtml',
              'error/404'               =&gt; __DIR__ . '/../view/error/404.phtml',
              'error/index'             =&gt; __DIR__ . '/../view/error/index.phtml',
          ),
          'template_path_stack' =&gt; array(
              __DIR__ . '/../view',
          ),
      ),
      // Placeholder for console routes
      'console' =&gt; array(
          'router' =&gt; array(
              'routes' =&gt; array(
              ),
          ),
      ),
   
  );</code></pre>
  </div>
  </div>
  </p>
  
  <p>Also I have a problem with mapping doctrine with this error
  [Exception]
    You do not have any mapped Doctrine ORM entities according to the current c
    onfiguration. If you have entities or mapping files you should check your m
    apping configuration for errors.
  please help me</p>