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