Advertisement
Guest User

Untitled

a guest
Apr 26th, 2012
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 11.43 KB | None | 0 0
  1. <?php
  2.  
  3. return array (
  4.     'instance' => array (
  5.         'alias' => array(
  6.             'EntityManager' => 'Doctrine\ORM\EntityManager',
  7.             'DoctrineQueryCache' => 'Doctrine\Common\Cache\ArrayCache',
  8.             'DoctrineMetadataCache' => 'Doctrine\Common\Cache\ArrayCache',
  9.         ),
  10.         'Doctrine\Common\Cache\CacheProvider' => array(
  11.             'parameters' => array(
  12.                 'namespace' => APPLICATION_PATH_MD5,
  13.             ),
  14.         ),
  15.         'Doctrine\DBAL\Event\Listeners\OracleSessionInit' => array(
  16.             'parameters' => array(
  17.                 'oraclesessioninit' => array(
  18.                     'NLS_TIME_FORMAT' => 'HH24:MI:SS',
  19.                 ),
  20.             ),
  21.         ),
  22.         'Doctrine\ORM\EntityManager' => array(
  23.             'parameters' => array(
  24.                 'options' => array(
  25.                     'driver' => 'pdo_mysql',
  26.                     'user' => 'root',
  27.                     'password' => '',
  28.                     'host' => '127.0.0.1',
  29.                     'dbname' => 'eboard',
  30.                     'charset' => 'utf8',
  31.                     'port' => 3306
  32.                 )
  33.             )
  34.         ),
  35.         'Doctrine\ORM\Configuration' => array(
  36.             'parameters' => array(
  37.                 'generateproxies' => true,
  38.                 'proxynamespace' => 'Application\EntityProxy',
  39.                 'proxydir' => 'application/models/entityproxies',
  40.             ),
  41.         ),
  42.         'Humus\Memcache' => array(
  43.             'parameters' => array(
  44.                 'servers' => array(
  45.                     0 => array(
  46.                         'host' => '127.0.0.1',
  47.                         'port' => '11211',
  48.                         'persistent' => true,
  49.                         'weight' => '1',
  50.                         'timeout' => '5',
  51.                         'retry_interval' => '15',
  52.                         'status' => '1',
  53.                     ),
  54.                 ),
  55.             ),
  56.         ),
  57.         'Humus\Doctrine\Common\EventManager' => array(
  58.             'parameters' => array(
  59.                 'subscribers' => array(
  60.                     'Gedmo\Loggable\LoggableListener',
  61.                     'Gedmo\Timestampable\TimestampableListener',
  62.                     'Humus\Gedmo\Translatable\TranslationListener',
  63.                     'Humus_Zend_Controller_Plugin_DoctrineFlush',
  64.                     'Doctrine\DBAL\Event\Listeners\MysqlSessionInit',
  65.                 ),
  66.             ),
  67.         ),
  68.  
  69.         'Humus\Doctrine\ORM\Mapping\Driver\DriverChain' => array(
  70.             'parameters' => array(
  71.                 'drivers' => array(
  72.                     0 => array(
  73.                         'nestedDriver' => array(
  74.                             'type' => 'yaml',
  75.                             'options' => array(
  76.                                 0 => 'application/configs/entities',
  77.                             ),
  78.                         ),
  79.                         'namespace' => 'Application\Entity',
  80.                     ),
  81.                     1 => array(
  82.                         'nestedDriver' => array(
  83.                             'type' => 'annotation',
  84.                             'options' => array(
  85.                                 0 => 'library/Humus/Log/Entity',
  86.                             ),
  87.                         ),
  88.                         'namespace' => 'Humus\Log\Entity',
  89.                     ),
  90.                     2 => array(
  91.                         'nestedDriver' => array(
  92.                             'type' => 'annotation',
  93.                             'options' => array(
  94.                                 0 => 'library/Humus/Acl/Entity',
  95.                             ),
  96.                         ),
  97.                         'namespace' => 'Humus\Acl\Entity',
  98.                     ),
  99.                     3 => array(
  100.                         'nestedDriver' => array(
  101.                             'type' => 'annotation',
  102.                             'options' => array(
  103.                                 0 => 'library/Humus/Translate/Entity',
  104.                             ),
  105.                         ),
  106.                         'namespace' => 'Humus\Translate\Entity',
  107.                     ),
  108.                     4 => array(
  109.                         'nestedDriver' => array(
  110.                             'type' => 'annotation',
  111.                             'options' => array(
  112.                                 0 => 'library/Gedmo/Loggable/Entity',
  113.                             ),
  114.                         ),
  115.                         'namespace' => 'Gedmo\Loggable',
  116.                     ),
  117.                     5 => array(
  118.                         'nestedDriver' => array(
  119.                             'type' => 'annotation',
  120.                             'options' => array(
  121.                                 0 => 'library/Humus/Model/Date/Entity',
  122.                             ),
  123.                         ),
  124.                         'namespace' => 'Humus\Model\Date\Entity',
  125.                     ),
  126.                     6 => array(
  127.                         'nestedDriver' => array(
  128.                             'type' => 'annotation',
  129.                             'options' => array(
  130.                                 0 => 'library/Gedmo/Translatable/Entity',
  131.                             ),
  132.                         ),
  133.                         'namespace' => 'Gedmo\Translatable\Entity',
  134.                     ),
  135.                 ),
  136.             ),
  137.         ),
  138.     ),
  139.     'definition' => array(
  140.         'Doctrine\ORM\EntityManager' => array(
  141.             'instantiator' => array(
  142.                 'name' => array(
  143.                     0 => 'Doctrine\ORM\EntityManager',
  144.                     1 => 'create',
  145.                 ),
  146.                 'parameters' => array(
  147.                     0 => array(
  148.                         'name' => 'options',
  149.                         'type' => 'array',
  150.                     ),
  151.                     1 => array(
  152.                         'name' => 'config',
  153.                         'type' => 'Doctrine\ORM\Configuration',
  154.                     ),
  155.                     2 => array(
  156.                         'name' => 'eventmanager',
  157.                         'type' => 'Humus\Doctrine\Common\EventManager',
  158.                     ),
  159.                 ),
  160.             ),
  161.         ),
  162.         'Doctrine\Common\Cache\CacheProvider' => array(
  163.             'instantiator' => array(
  164.                 'name' => '__construct',
  165.             ),
  166.             'methods' => array(
  167.                 'setNamespace' => array(
  168.                     0 => array(
  169.                         'name' => 'namespace',
  170.                         'type' => 'string',
  171.                     ),
  172.                 ),
  173.             ),
  174.             'abstract' => true,
  175.         ),
  176.         'Doctrine\Common\Cache\ApcCache' => array(
  177.             'supertype' => 'Doctrine\Common\Cache\CacheProvider',
  178.         ),
  179.         'Doctrine\Common\Cache\ArrayCache' => array(
  180.             'supertype' => 'Doctrine\Common\Cache\CacheProvider',
  181.         ),
  182.         'Doctrine\Common\Cache\MemcacheCache' => array(
  183.             'supertype' => 'Doctrine\Common\Cache\CacheProvider',
  184.             'methods' => array(
  185.                 'setMemcache' => array(
  186.                     0 => array(
  187.                         'type' => 'Humus\Memcache',
  188.                     ),
  189.                 ),
  190.             ),
  191.         ),
  192.         'Doctrine\Common\Cache\XcacheCache' => array(
  193.             'supertype' => 'Doctrine\Common\Cache\CacheProvider',
  194.         ),
  195.         'Doctrine\Common\Cache\ZendDataCache' => array(
  196.             'supertype' => 'Doctrine\Common\Cache\CacheProvider',
  197.         ),
  198.         'Doctrine\ORM\Configuration' => array(
  199.             'instantiator' => array(
  200.                 'name' => '__construct',
  201.             ),
  202.             'methods' => array(
  203.                 'setMetadataCacheImpl' => array(
  204.                     0 => array(
  205.                         'name' => 'CacheImpl',
  206.                         'type' => 'DoctrineMetadataCache',
  207.                     ),
  208.                 ),
  209.                 'setQueryCacheImpl' => array(
  210.                     0 => array(
  211.                         'name' => 'CacheImpl2',
  212.                         'type' => 'DoctrineQueryCache',
  213.                     ),
  214.                 ),
  215.                 'setAutoGenerateProxyClasses' => array(
  216.                     0 => array(
  217.                         'name' => 'generateproxies',
  218.                         'type' => 'boolean',
  219.                     ),
  220.                 ),
  221.                 'setProxyDir' => array(
  222.                     0 => array(
  223.                         'name' => 'proxydir',
  224.                         'type' => 'string',
  225.                     ),
  226.                 ),
  227.                 'setProxyNamespace' => array(
  228.                     0 => array(
  229.                         'name' => 'proxynamespace',
  230.                         'type' => 'string',
  231.                     ),
  232.                 ),
  233.                 'setMetadataDriverImpl' => array(
  234.                     0 => array(
  235.                         'name' => 'driverimpl',
  236.                         'type' => 'Humus\Doctrine\ORM\Mapping\Driver\DriverChain',
  237.                     ),
  238.                 ),
  239.             ),
  240.         ),
  241.         'Doctrine\DBAL\Event\Listeners\OracleSessionInit' => array(
  242.             'instantiator' => array(
  243.                 'name' => '__construct',
  244.                 'parameters' => array(
  245.                     0 => array(
  246.                         'name' => 'oraclesessioninit',
  247.                         'type' => 'array',
  248.                     ),
  249.                 ),
  250.             ),
  251.         ),
  252.  
  253.         'Gedmo\Loggable\LoggableListener' => array(
  254.             'instantiator' => array(
  255.                 'name' => '__construct',
  256.             ),
  257.         ),
  258.         'Gedmo\Timestampable\TimestampableListener' => array(
  259.             'instantiator' => array(
  260.                 'name' => '__construct',
  261.             ),
  262.         ),
  263.         'Humus\Memcache' => array(
  264.             'instantiator' => array(
  265.                 'name' => '__construct',
  266.             ),
  267.             'methods' => array(
  268.                 'addServers' => array(
  269.                     0 => array(
  270.                         'name' => 'servers',
  271.                         'type' => 'array',
  272.                     ),
  273.                 ),
  274.             ),
  275.         ),
  276.         'Humus\Gedmo\Translatable\TranslationListener' => array(
  277.             'instantiator' => array(
  278.                 'name' => '__construct',
  279.             ),
  280.         ),
  281.         'Humus\Doctrine\ORM\Mapping\Driver\DriverChain' => array(
  282.             'instantiator' => array(
  283.                 'name' => '__construct',
  284.             ),
  285.             'methods' => array(
  286.                 'addDrivers' => array(
  287.                     0 => array(
  288.                         'name' => 'drivers',
  289.                         'type' => 'array',
  290.                     ),
  291.                 ),
  292.             ),
  293.         ),
  294.         'Humus\Doctrine\Common\EventManager' => array(
  295.             'instantiator' => array(
  296.                 'name' => '__construct',
  297.             ),
  298.             'methods' => array(
  299.                 'setLocator' => array(
  300.                     0 => array(
  301.                         'name' => 'context',
  302.                         'type' => '$this',
  303.                     ),
  304.                 ),
  305.                 'addEventSubscribers' => array(
  306.                     0 => array(
  307.                         'name' => 'subscribers',
  308.                         'type' => 'array',
  309.                     ),
  310.                 ),
  311.             ),
  312.         ),
  313.     ),
  314.  
  315. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement