示例#1
0
 /**
  * This method can be overridden to define dependencies for the class.
  * These dependencies will then be injected by the ObjectBuilder.
  *
  * @access public
  * @param \Bytes\Dependencies $Dependencies
  * @return void
  */
 public function Dependencies(\Bytes\Dependencies &$Dependencies, \Bytes\Environment &$Environment, array $Context = [])
 {
     switch ($Context['Method']) {
         case 'Install':
             $Dependencies->Must()->Provide('Installer');
             break;
         case 'HMVC':
             $Dependencies->Must()->Provide('HMVCSample');
             break;
     }
 }
示例#2
0
 /**
  * Define dependencies
  *
  * @final
  * @param \Bytes\Dependencies $Dependencies
  * @access public
  * @return void
  */
 public function Dependencies(\Bytes\Dependencies &$Dependencies, \Bytes\Environment &$Environment, array $Context = [])
 {
     /* ------------------------------------------------------------------------------------------------------
           DECLARE
        ------------------------------------------------------------------------------------------------------ */
     $Dependencies->Must()->Provide('Database');
 }
示例#3
0
 /**
  * Define the dependencies required under various circumstances in this controller
  *
  * @access public
  * @param \Bytes\Dependencies $Dependencies
  * @param \Bytes\Environment $Environment
  * @param array $Context
  * @return void
  */
 public function Dependencies(\Bytes\Dependencies &$Dependencies, \Bytes\Environment &$Environment, array $Context = [])
 {
     $Dependencies->Must()->Provide('HMVCSample');
 }