/** * 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; } }
/** * 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'); }
/** * 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'); }