Dingo\Api\Console\Command\Routes::__construct PHP Метод

__construct() публичный Метод

Create a new routes command instance.
public __construct ( Router $router ) : void
$router Dingo\Api\Routing\Router
Результат 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;
    }