public function __construct($name = null, $version = null) { if (null !== $name) { $this->name = $name; } if (null !== $version) { $this->version = $version; } $this->router = new Routing\Router(); $this->initEvents(); }