/** * Constructor. * * @param RouteCollection $routes The RouteCollection Interface * @param EventDispatcher $dispatcher The EventDispatcher Interface * * @api */ public function __construct(RouteCollection $routes, EventDispatcher $dispatcher) { $this->routes = $routes; $this->dispatcher = $dispatcher; $this->controller = new BaseController(); $this->service = ServiceRequestContainer::serviceConnect(); }
/** * Avoid serving that IE only compatability tag to all users. * * Save bytes for anyone not using IE (a step closer to W3C validation). * * @return ConfigurationInterface The current instance */ protected function ieCompatibleMode() : ConfigurationInterface { if (strpos(ServiceRequestContainer::serviceConnect()->Request->server->get('HTTP_USER_AGENT'), 'MSIE') !== false) { header('X-UA-Compatible: IE=edge, chrome=1'); } return $this; }
/** * Constructor. * * @api */ public function __construct() { $this->setProperty('service', ServiceRequestContainer::serviceConnect()); $this->setProperty('persist', $this->service->Persistence); /** * UCSD SMTP Service and Authentication (Group-Name, Service). * * $this->set('passwordVault', $encryption->openPasswordVault('smtp_user', 'SMTP')); * $this->set('Host', $this->get('passwordVault')['host']); * $this->set('Username', $this->get('passwordVault')['username']); * $this->set('Password', $this->get('passwordVault')['password']); * $this->set('SMTPSecure', $this->get('passwordVault')['encryption']); * $this->set('Port', $this->get('passwordVault')['port']); * $this->set('AuthType', $this->get('passwordVault')['auth_type']); * $this->set('Socket', $this->get('passwordVault')['socket']); * unset($this->storageRegister['passwordVault']); */ }