Created
December 19, 2015 14:47
-
-
Save ellipizle/3a49717c900eef52aadd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'doctrine' => array( | |
'driver' => array( | |
__NAMESPACE__ . '_driver' => array( | |
'class' => 'Doctrine\ODM\CouchDB\Mapping\Driver\AnnotationDriver', | |
'cache' => 'array', | |
'paths' => array(__DIR__ . '/../src/' . __NAMESPACE__ . '/Document') | |
), | |
'orm_default' => array( | |
'drivers' => array( | |
__NAMESPACE__ . '\Document' => __NAMESPACE__ . '_driver' | |
) | |
) | |
) | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return array( | |
'doctrine' => array( | |
'connection' => array( | |
'odm_default' => array( | |
'type' => 'socket', | |
'host' => 'localhost', | |
'ip' => '127.0.0.1', | |
'port' => '5984', | |
'user' => null, | |
'password' => null, | |
'dbname' => 'album', | |
'options' => array() | |
), | |
), | |
'configuration' => array( | |
'odm_default' => array( | |
'metadata_cache' => 'array', | |
'driver' => 'odm_default', | |
'generate_proxies' => true, | |
'proxy_dir' => 'data/DoctrineCouchODMModule/Proxy', | |
'proxy_namespace' => 'DoctrineCouchODMModule\Proxy', | |
'default_db' => null, | |
'filters' => array() // array('filterName' => 'BSON\Filter\Class') | |
) | |
), | |
'driver' => array( | |
'odm_default' => array( | |
'class' => 'Doctrine\Common\Persistence\Mapping\Driver\MappingDriverChain', | |
'drivers' => array() | |
) | |
), | |
'documentmanager' => array( | |
'odm_default' => array( | |
'connection' => 'odm_default', | |
'configuration' => 'odm_default', | |
'eventmanager' => 'odm_default' | |
) | |
), | |
'eventmanager' => array( | |
'odm_default' => array( | |
'subscribers' => array() | |
) | |
), | |
'couch_logger_collector' => array( | |
'odm_default' => array(), | |
), | |
'authentication' => array( | |
'odm_default' => array( | |
'objectManager' => 'doctrine.documentmanager.odm_default', | |
'identityClass' => 'Application\Model\User', | |
'identityProperty' => 'username', | |
'credentialProperty' => 'password' | |
), | |
), | |
), | |
// zendframework/zend-developer-tools specific settings | |
'view_manager' => array( | |
'template_map' => array( | |
'zend-developer-tools/toolbar/doctrine-odm' => __DIR__ . '/../view/zend-developer-tools/toolbar/doctrine-odm.phtml', | |
), | |
), | |
'zenddevelopertools' => array( | |
'profiler' => array( | |
'collectors' => array( | |
'odm_default' => 'doctrine.couch_logger_collector.odm_default', | |
), | |
), | |
'toolbar' => array( | |
'entries' => array( | |
'odm_default' => 'zend-developer-tools/toolbar/doctrine-odm', | |
), | |
), | |
), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment