Skip to content

Commit

Permalink
added ability to null config file
Browse files Browse the repository at this point in the history
  • Loading branch information
kilip committed Oct 31, 2018
1 parent fe06280 commit cd0055f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/Core/bin/yawik
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ if (!class_exists('Core\Module', true)) {

use Core\Yawik;

Yawik::runApplication(getcwd().'/config/config.php');
Yawik::runApplication();
4 changes: 2 additions & 2 deletions module/Core/src/Yawik.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public static function generateModuleConfiguration($loadModules=[])
* @param bool $run
* @return bool|ZendApplication
*/
public static function initApplication($appConfig)
public static function initApplication($appConfig = null)
{
static::init();
if (is_file($appConfig)) {
Expand Down Expand Up @@ -122,7 +122,7 @@ public static function initApplication($appConfig)
return ZendApplication::init($appConfig);
}

public static function runApplication($appConfig)
public static function runApplication($appConfig=null)
{
ini_set('display_errors', true);
ini_set('error_reporting', E_ALL | E_STRICT);
Expand Down

0 comments on commit cd0055f

Please sign in to comment.