Ejemplo n.º 1
0
 /**
  * ---------------------------------------------------
  * Cygnite Constructor
  * ---------------------------------------------------
  * You cannot directly create object of Application
  * instance method will dynamically return you instance of
  * Application
  *
  * @param Autoloader $loader
  * @return \Cygnite\Foundation\Application
  */
 protected function __construct(Autoloader $loader = null)
 {
     self::$loader = $loader ?: new AutoLoader();
 }
Ejemplo n.º 2
0
 /**
  * ---------------------------------------------------
  * Cygnite Constructor
  * ---------------------------------------------------
  * You cannot directly create object of Application
  * instance method will dynamically return you instance of
  * Application
  *
  * @param Inflector  $inflection
  * @param Autoloader $loader
  * @return \Cygnite\Foundation\Application
  */
 protected function __construct(Inflector $inflection = null, Autoloader $loader = null)
 {
     $inflection = $inflection ?: new Inflector();
     self::$loader = $loader ?: new AutoLoader($inflection);
 }