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
570
What happens in Laravel 4 bootstraping
介紹 Laravel 4 的啟動過程
大澤木小鐵
December 16, 2014
Tweet
Share
More Decks by 大澤木小鐵
See All by 大澤木小鐵
Effective Unit Testing
jaceju
3
610
JSConf Asia 2014 Sessions
jaceju
4
430
Deal with Laravel assets by Bower & Gulp
jaceju
30
2k
Leaning MVC By Example
jaceju
0
390
ng-conf_2014
jaceju
2
1k
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
400
jQuery vs AngularJS, dochi?
jaceju
20
3k
Begining Composer
jaceju
24
5.3k
Checkup your web pages
jaceju
44
3.2k
Other Decks in Programming
See All in Programming
CSC305 Lecture 03
javiergs
PRO
0
230
Learn CPU architecture with Assembly
akkeylab
1
1.3k
大規模アプリのDIフレームワーク刷新戦略 ~過去最大規模の並行開発を止めずにアプリ全体に導入するまで~
mot_techtalk
0
340
2分台で1500examples完走!爆速CIを支える環境構築術 - Kaigi on Rails 2025
falcon8823
3
2.7k
iOSエンジニア向けの英語学習アプリを作る!
yukawashouhei
0
170
Serena MCPのすすめ
wadakatu
4
860
SpecKitでどこまでできる? コストはどれくらい?
leveragestech
0
430
GitHub Actions × AWS OIDC連携の仕組みと経緯を理解する
ota1022
0
230
ネイティブ製ガントチャートUIを作って学ぶUICollectionViewLayoutの威力
jrsaruo
0
120
Build your own WebP codec in Swift
kishikawakatsumi
2
870
高度なUI/UXこそHotwireで作ろう Kaigi on Rails 2025
naofumi
4
3k
半自動E2Eで手っ取り早くリグレッションテストを効率化しよう
beryu
6
2.4k
Featured
See All Featured
ReactJS: Keep Simple. Everything can be a component!
pedronauck
667
120k
Visualization
eitanlees
148
16k
Making the Leap to Tech Lead
cromwellryan
135
9.5k
Agile that works and the tools we love
rasmusluckow
331
21k
Docker and Python
trallard
46
3.6k
RailsConf 2023
tenderlove
30
1.2k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
188
55k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
33
2.4k
Thoughts on Productivity
jonyablonski
70
4.8k
Facilitating Awesome Meetings
lara
56
6.6k
Imperfection Machines: The Place of Print at Facebook
scottboms
269
13k
JavaScript: Past, Present, and Future - NDC Porto 2020
reverentgeek
52
5.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