Symfony
PHPの軽量フレームワーク
マイクロサービスでも使えそう。
Routing
これか?
code:router
use App\Controller\BlogApiController;
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
return function (RoutingConfigurator $routes) {
$routes->add('api_post_show', '/api/posts/{id}')
;
$routes->add('api_post_edit', '/api/posts/{id}')
;
};
コントローラーでResponseを生成し、返している
code:controller
return new Response(
'<html><body>Lucky number: '.$number.'</body></html>'
);
コントローラー
認証
OIDC