Exemplo n.º 1
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');
 }
Exemplo n.º 2
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;
     }
 }
Exemplo n.º 3
0
 /**
  * Define dependencies
  *
  * @final
  * @param \Bytes\Dependencies $Dependencies
  * @access public
  * @return void
  */
 public final function Dependencies(\Bytes\Dependencies &$Dependencies, \Bytes\Environment &$Environment, array $Options = [])
 {
     /* ------------------------------------------------------------------------------------------------------
           DECLARE
        ------------------------------------------------------------------------------------------------------ */
     $Dependencies->IfAvailable()->ProvideGroup('Parsers');
 }
Exemplo n.º 4
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');
 }