Skip to content

Instantly share code, notes, and snippets.

@Danielss89
Created February 15, 2012 20:28
Show Gist options
  • Save Danielss89/1838790 to your computer and use it in GitHub Desktop.
Save Danielss89/1838790 to your computer and use it in GitHub Desktop.
Module config which ads another path for entities
<?php
return array(
'display_exceptions' => true,
'di' => array(
'instance' => array(
'alias' => array(
'salonCalendar' => 'Salon\Controller\CalendarController',
),
'Zend\Mvc\Router\RouteStack' => array(
'parameters' => array(
'routes' => array(
),
),
),
'orm_driver_chain' => array(
'parameters' => array(
'drivers' => array(
'user_annotation_driver' => array(
'class' => 'Doctrine\ORM\Mapping\Driver\AnnotationDriver',
'namespace' => 'User\Entity',
'paths' => array('module/User/src/User/Entity')
),
)
)
),
),
),
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment