コード例 #1
0
 /**
  * Identify Class Dependencies for Constructor Injection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['User'] = $options;
     return $this->dependencies;
 }
コード例 #2
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Runtimedata'] = array();
     $this->dependencies['Resource'] = array();
     return $this->dependencies;
 }
コード例 #3
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Resource'] = array();
     $this->dependencies['Fieldhandler'] = array();
     return $this->dependencies;
 }
コード例 #4
0
ファイル: MailerFactoryMethod.php プロジェクト: molajo/user
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['Email'] = $options;
     $this->dependencies['Template'] = $options;
     return $this->dependencies;
 }
コード例 #5
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Database'] = array();
     $this->dependencies['Query'] = array();
     $this->dependencies['Eventcallback'] = array();
     return $this->dependencies;
 }
コード例 #6
0
ファイル: TemplateFactoryMethod.php プロジェクト: molajo/user
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['Fieldhandler'] = $options;
     $this->dependencies['Messages'] = $options;
     return $this->dependencies;
 }
コード例 #7
0
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Resource'] = array();
     $this->dependencies['Resourcedata'] = array();
     $this->dependencies['Registry'] = array();
     $this->dependencies['Resourcedefault'] = array();
     return $this->dependencies;
 }
コード例 #8
0
 /**
  * Define Service Dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     // Intentionally not instantiating the class in this factory
     // Will be created in Instantiateuser
     parent::setDependencies(array());
     $this->dependencies = array();
     $this->dependencies['Session'] = array();
     return $this->dependencies;
 }
コード例 #9
0
ファイル: QueryFactoryMethod.php プロジェクト: molajo/query
 /**
  * Define dependencies or use dependencies automatically defined by base class using Reflection
  *
  * @param   array $reflection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies = array();
     $this->dependencies['Fieldhandler'] = array();
     $this->dependencies['Runtimedata'] = array();
     $this->dependencies['Resource'] = array();
     $this->dependencies['Database'] = array();
     return $this->dependencies;
 }
コード例 #10
0
 /**
  * Define dependencies or use dependencies automatically defined by base class using Reflection
  *
  * @return  array
  * @since   1.0.0
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $options = array();
     $this->dependencies['Cache'] = $options;
     $this->dependencies['Fieldhandler'] = $options;
     $this->dependencies['Resource'] = $options;
     $this->dependencies['Runtimedata'] = $options;
     return $this->dependencies;
 }
コード例 #11
0
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Resource'] = array();
     $this->dependencies['ResourceMap'] = array();
     $this->dependencies['Getcachecallback'] = array();
     $this->dependencies['Setcachecallback'] = array();
     $this->dependencies['Deletecachecallback'] = array();
     return $this->dependencies;
 }
コード例 #12
0
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $options = array();
     $this->dependencies['Runtimedata'] = $options;
     $this->dependencies['Mailer'] = $options;
     $this->dependencies['Encrypt'] = $options;
     $this->dependencies['Fieldhandler'] = $options;
     $this->dependencies['Flashmessage'] = $options;
     $this->dependencies['Userdata'] = $options;
     return $this->dependencies;
 }
コード例 #13
0
 /**
  * Identify Class Dependencies for Constructor Injection
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     /**
      * To make certain all dependencies are filled before Site runs and continues
      * scheduling from the Resources schedule
      */
     $options = array();
     $this->dependencies['Resource'] = $options;
     $this->dependencies['Request'] = $options;
     $this->dependencies['Runtimedata'] = $options;
     return $this->dependencies;
 }
コード例 #14
0
ファイル: EventFactoryMethod.php プロジェクト: molajo/event
 /**
  * Set dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies = array();
     $options = array('if_exists' => true);
     foreach ($this->dependencies_array as $key => $value) {
         if (isset($this->options[$value])) {
         } else {
             $this->dependencies[$value] = $options;
         }
     }
     return $this->dependencies;
 }
コード例 #15
0
ファイル: DebugFactoryMethod.php プロジェクト: molajo/log
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $logger_request = new stdClass();
     $logger_request->name = 'Debug Logging to File';
     $logger_request->logger_type = 'File';
     $logger_request->levels = array(100, 200, 300, 400, 500, 550, 600);
     $logger_request->context = array();
     $logger_request->context['file_location'] = $this->base_path . '/Sites/2/Logs/DebugLogger.json';
     $options = array();
     $options['logger_requests'] = $logger_request;
     $this->dependencies['Logger'] = $options;
     return $this->dependencies;
 }
コード例 #16
0
ファイル: UserFactoryMethod.php プロジェクト: molajo/user
 /**
  * Define Service Dependencies
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     // Intentionally not instantiating the class in this factory
     // It will be created later in Instantiateuser
     parent::setDependencies(array());
     $this->dependencies = array();
     $options = array();
     $this->dependencies['Request'] = $options;
     $this->dependencies['Cookie'] = $options;
     $this->dependencies['Session'] = $options;
     $this->dependencies['Flashmessage'] = $options;
     $this->dependencies['Runtimedata'] = $options;
     $this->dependencies['Resource'] = $options;
     $this->dependencies['Messages'] = $options;
     $this->dependencies['Mailer'] = $options;
     return $this->dependencies;
 }
コード例 #17
0
ファイル: EncryptFactoryMethod.php プロジェクト: molajo/user
 /**
  * Instantiate a new handler and inject it into the Adapter for the FactoryInterface
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies(array());
     $this->dependencies['Messages'] = array();
     return $this->dependencies;
 }
コード例 #18
0
ファイル: MessagesFactoryMethod.php プロジェクト: molajo/user
 /**
  * Retrieve a list of Interface dependencies and return the data ot the controller.
  *
  * @return  array
  * @since   1.0.0
  * @throws  \CommonApi\Exception\RuntimeException
  */
 public function setDependencies(array $reflection = array())
 {
     parent::setDependencies($reflection);
     $this->dependencies['Flashmessage'] = $this->setMessages();
     return $this->dependencies;
 }