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
530
What happens in Laravel 4 bootstraping
介紹 Laravel 4 的啟動過程
大澤木小鐵
December 16, 2014
Tweet
Share
More Decks by 大澤木小鐵
See All by 大澤木小鐵
Effective Unit Testing
jaceju
3
550
JSConf Asia 2014 Sessions
jaceju
4
360
Deal with Laravel assets by Bower & Gulp
jaceju
30
1.9k
Leaning MVC By Example
jaceju
0
330
ng-conf_2014
jaceju
2
930
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
360
jQuery vs AngularJS, dochi?
jaceju
20
2.9k
Begining Composer
jaceju
24
4.9k
Checkup your web pages
jaceju
44
3.1k
Other Decks in Programming
See All in Programming
if constexpr文はテンプレート世界のラムダ式である
faithandbrave
3
670
Amazon SQSコンシューマー疎結合への旅 - 出張! #DevelopersIO IT技術ブログの中の人が語る勉強会 #3
quiver
0
300
大規模Reactアプリのリアーキテクチャ~8万行のTanStack Query移行の軌跡~
kj455
4
1k
初心者のためのRubyKaigi入門/RubyKaigi Introduction
a_matsuda
8
1.4k
What We Can Learn From OSS
inouehi
0
430
PHPはいつから死んでいるかの調査
chiroruxx
2
410
try! Swift Tokyo 初参加報告LT
hinakko2
0
230
新宿ダンジョンを可視化してみた
satoshi7190
3
370
Build Apps for iOS, Android & Desktop in 100% Kotlin With Compose Multiplatform (mDevCamp 2024)
zsmb
0
420
StoreKit2によるiOSのアプリ内課金のリニューアル
kangnux
0
120
Ruby GitHub Packages
bkuhlmann
0
640
MetricKitで予期せぬ終了を検知する話 / Detect unexpected termination with MetricKit
nekowen
1
200
Featured
See All Featured
Rebuilding a faster, lazier Slack
samanthasiow
74
8.2k
Mobile First: as difficult as doing things right
swwweet
217
8.6k
Art, The Web, and Tiny UX
lynnandtonic
290
19k
Writing Fast Ruby
sferik
622
60k
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
117
18k
The Brand Is Dead. Long Live the Brand.
mthomps
49
29k
Imperfection Machines: The Place of Print at Facebook
scottboms
261
12k
The Language of Interfaces
destraynor
151
23k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
242
1.2M
How GitHub Uses GitHub to Build GitHub
holman
468
290k
For a Future-Friendly Web
brad_frost
172
9k
What's new in Ruby 2.0
geeforr
337
31k
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