Phalcon\DI\FactoryDefaultは何を登録するのか?

Phalcon\DI\FactoryDefaultは、Phalconに付属しているコンポーネントのほとんどを登録すると公式ドキュメントにあります。

ということで、実際に何を登録するのか確認してみます。

$di = new FactoryDefault();
var_dump($di); exit;
object(Phalcon\DI\FactoryDefault)[7]
  public '_services' => 
    array (size=21)
      'router' => 
        object(Phalcon\DI\Service)[8]
      'dispatcher' => 
        object(Phalcon\DI\Service)[9]
      'url' => 
        object(Phalcon\DI\Service)[10]
      'modelsManager' => 
        object(Phalcon\DI\Service)[11]
      'modelsMetadata' => 
        object(Phalcon\DI\Service)[12]
      'response' => 
        object(Phalcon\DI\Service)[13]
      'cookies' => 
        object(Phalcon\DI\Service)[14]
      'request' => 
        object(Phalcon\DI\Service)[15]
      'filter' => 
        object(Phalcon\DI\Service)[16]
      'escaper' => 
        object(Phalcon\DI\Service)[17]
      'security' => 
        object(Phalcon\DI\Service)[19]
      'crypt' => 
        object(Phalcon\DI\Service)[20]
      'annotations' => 
        object(Phalcon\DI\Service)[18]
      'flash' => 
        object(Phalcon\DI\Service)[21]
      'flashSession' => 
        object(Phalcon\DI\Service)[22]
      'tag' => 
        object(Phalcon\DI\Service)[23]
      'session' => 
        object(Phalcon\DI\Service)[24]
      'sessionBag' => 
        object(Phalcon\DI\Service)[25]
      'eventsManager' => 
        object(Phalcon\DI\Service)[26]
      'transactionManager' => 
        object(Phalcon\DI\Service)[27]
      'assets' => 
        object(Phalcon\DI\Service)[28]
  public '_sharedInstances' => 
    array (size=0)
      empty
  public '_freshInstance' => boolean false

Date: 2014/12/14

Tags: phalcon