最近Laravelを触っています。 で、LaravelだとURLと実行するアクションを関連付けるルーティング部分を Route::get('/', function() { return 'Hello World'; }); こんなふうに、RubyのSinatraっぽくかけるんですよね。ところがこのRouteというクラス、事前にuseで使う名前空間の指定もしていないし、実際にどのPHPクラスが使われているかよくわからない。そこでソースを追ってみました。 エイリアス フロントコントローラのpubic/index.phpを起点に読み始めていくと、 pubic/index.php->bootstrap/start.php->vendor/laravel/framework/src/Illuminate/Foundation/start.phpとファイルが読み込まれて、この中で、 $aliases