public function connect(App $app)
{
$this->app = $app;
$app->error([$this, 'error']);
$controllers = $app['controllers_factory'];
$controllers->get('/', [$this, 'homepage'])->bind('homepage');
$controllers->get('/login', [$this, 'login'])->bind('login');
$controllers->get('/doctrine', [$this, 'doctrine'])->bind('doctrine');
$controllers->match('/form', [$this, 'form'])->bind('form');
$controllers->get('/cache', [$this, 'cache'])->bind('cache');
return $controllers;
}