/**
  * Constructor.
  * @param mixed $config application configuration.
  * If a string, it is treated as the path of the file that contains the configuration;
  * If an array, it is the actual configuration information.
  * Please make sure you specify the {@link getBasePath basePath} property in the configuration,
  * which should point to the directory containing all application logic, template and data.
  * If not, the directory will be defaulted to 'protected'.
  */
 public function __construct($config = null)
 {
     Zool::setApplication($this);
 }
 /**
  * Constructor.
  * @param mixed $config application configuration.
  * If a string, it is treated as the path of the file that contains the configuration;
  * If an array, it is the actual configuration information.
  * Please make sure you specify the {@link getBasePath basePath} property in the configuration,
  * which should point to the directory containing all application logic, template and data.
  * If not, the directory will be defaulted to 'protected'.
  */
 public function __construct($name, $config)
 {
     parent::__construct($name, $config);
     Zool::setApplication($this);
     $this->initSystemHandlers();
 }