public function __construct(Router $router) { // Ugly, but we need to bypass the constructor and directly target the // constructor on the command class. Command::__construct(); $this->router = $router; }