init() public method

This method is required by IService interface and is invoked by application.
public init ( $config )
Exemplo n.º 1
0
 public function init($config)
 {
     if ($this->getApplication()->getMode() === TApplicationMode::Performance || $this->getApplication()->getMode() === TApplicationMode::Normal) {
         throw new TInvalidOperationException("You should not use Prado WSAT in any of the production modes.");
     }
     if (empty($this->_pass)) {
         throw new TConfigurationException("You need to specify the Password attribute.");
     }
     $this->setDefaultPage("TWsatHome");
     $this->_startThemeManager();
     parent::init($config);
 }