33 lines
533 B
PHP
33 lines
533 B
PHP
<?php
|
|
|
|
namespace App\Bootstrap;
|
|
|
|
use App\Controllers;
|
|
use Slim\App;
|
|
|
|
class RouteManager
|
|
{
|
|
/** @var App The application */
|
|
protected $app;
|
|
|
|
/**
|
|
* Create a new RouteManager object.
|
|
*
|
|
* @param \Slim\App $app
|
|
*/
|
|
public function __construct(App $app)
|
|
{
|
|
$this->app = $app;
|
|
}
|
|
|
|
/**
|
|
* Register the application routes.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function __invoke(): void
|
|
{
|
|
$this->app->get('/[{path:.*}]', Controllers\IndexController::class);
|
|
}
|
|
}
|