Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
What happens in Laravel 4 bootstraping
Search
大澤木小鐵
December 16, 2014
Programming
9
580
What happens in Laravel 4 bootstraping
介紹 Laravel 4 的啟動過程
大澤木小鐵
December 16, 2014
Tweet
Share
More Decks by 大澤木小鐵
See All by 大澤木小鐵
Effective Unit Testing
jaceju
3
640
JSConf Asia 2014 Sessions
jaceju
4
440
Deal with Laravel assets by Bower & Gulp
jaceju
30
2k
Leaning MVC By Example
jaceju
0
410
ng-conf_2014
jaceju
2
1.1k
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
430
jQuery vs AngularJS, dochi?
jaceju
20
3k
Begining Composer
jaceju
24
5.4k
Checkup your web pages
jaceju
44
3.2k
Other Decks in Programming
See All in Programming
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
620
AWS re:Invent 2025参加 直前 Seattle-Tacoma Airport(SEA)におけるハードウェア紛失インシデントLT
tetutetu214
2
120
AI Agent の開発と運用を支える Durable Execution #AgentsInProd
izumin5210
7
2.3k
24時間止められないシステムを守る-医療ITにおけるランサムウェア対策の実際
koukimiura
1
130
Best-Practices-for-Cortex-Analyst-and-AI-Agent
ryotaroikeda
1
110
ノイジーネイバー問題を解決する 公平なキューイング
occhi
0
110
生成AIを使ったコードレビューで定性的に品質カバー
chiilog
1
280
ぼくの開発環境2026
yuzneri
0
250
React Native × React Router v7 API通信の共通化で考えるべきこと
suguruooki
0
100
AI巻き込み型コードレビューのススメ
nealle
2
1.4k
AI時代のキャリアプラン「技術の引力」からの脱出と「問い」へのいざない / tech-gravity
minodriven
21
7.4k
AIと一緒にレガシーに向き合ってみた
nyafunta9858
0
260
Featured
See All Featured
Context Engineering - Making Every Token Count
addyosmani
9
670
Chasing Engaging Ingredients in Design
codingconduct
0
120
WCS-LA-2024
lcolladotor
0
450
jQuery: Nuts, Bolts and Bling
dougneiner
65
8.4k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
55
Tell your own story through comics
letsgokoyo
1
810
Ethics towards AI in product and experience design
skipperchong
2
200
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
122
21k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
920
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
440
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
2.7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
34
2.6k
Transcript
Laravel 4 What happens in bootstraping Jace Ju @ KKBOX
1. (request) 2. " 3.
! providers 4. 5. filters routers 6.
• public/.htaccss (Apache) • public/index.php •
• bootstrap/start.php •
Application: IoC Container // provider session
$app->bindShared('session', function($app) { return new SessionManager($app); }); // session $session = $app['session']; http://laravel.tw/docs/ioc</sub> <sub>http://www.jaceju.net/blog/archives/php-di-container/
hostname $env = $app->detectEnvironment([ 'local' =>
['jace-note-book'], 'production' => ['web-machine-1', 'web-machine-2'], ]); testing
$env = $app->detectEnvironment(function () { return
'production'; }); http://blog.wu-boy.com/2014/08/laravel-application-environments-without-hostnames/
• bootstrap/paths.php • Laravel Framework start.php
Framework • Facades ", ) • '+&* app/config
" • ( production +&* # • Exception • "% timezone • ).- $! http://laravel.tw/docs/facades
providers • app/config/app.php providers •
app/storage/meta/services.json ( ) • # • "! IoC container
Provider • (Eager loading) • (Event
loading) • console mode (Deferred loading)
app/start/global.php • ! •
Log • Exception • • app/filters.php
app/start/{env}.php • app/start/local.php • app/start/production.php
routers app/routes.php • (route) •
• request Controller • filter
• Request IoC • request
Response • Response
• Laravel IoC Container • •
Router / Request / Response