Dingo\Api\Console\Command\Routes::__construct PHP Method

__construct() public method

Create a new routes command instance.
public __construct ( Router $router ) : void
$router Dingo\Api\Routing\Router
return void
    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;
    }