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
540
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
380
Deal with Laravel assets by Bower & Gulp
jaceju
30
1.9k
Leaning MVC By Example
jaceju
0
340
ng-conf_2014
jaceju
2
960
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
360
jQuery vs AngularJS, dochi?
jaceju
20
2.9k
Begining Composer
jaceju
24
5k
Checkup your web pages
jaceju
44
3.1k
Other Decks in Programming
See All in Programming
仮想ファイルシステムを導入して開発環境のストレージ課題を解消する
segadevtech
2
550
Method Swizzlingを行うライブラリにおけるマルチモジュール設計
yoshikma
0
120
Debugging: All you need to know (for simultaneous interpreting)
jmatsu
2
860
Go1.23で入った errorsパッケージの小さなアプデ
kuro_kurorrr
2
390
はじめてみよう量子プログラミング
itokoichi01
0
220
Modular Monolith Go Server with GraphQL Federation + gRPC
110y
1
590
Swiftコードバトル必勝法
toshi0383
0
170
大公開!iOS開発の悩みトップ5 〜iOSDC Japan 2024〜
ryunakayama
0
190
Prolog入門
qnighy
4
1k
Amazon Neptuneで始める初めてのグラフDB ー グラフDBを使う意味を考える ー
satoshi256kbyte
2
260
The Shape of a Service Object
inem
0
520
開発を加速する共有Swift Package実践
elmetal
PRO
0
420
Featured
See All Featured
A better future with KSS
kneath
235
17k
Optimizing for Happiness
mojombo
375
69k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
502
140k
How to Think Like a Performance Engineer
csswizardry
16
960
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
36
2.1k
Imperfection Machines: The Place of Print at Facebook
scottboms
263
13k
Typedesign – Prime Four
hannesfritz
39
2.3k
Optimising Largest Contentful Paint
csswizardry
31
2.8k
Fontdeck: Realign not Redesign
paulrobertlloyd
80
5.1k
Large-scale JavaScript Application Architecture
addyosmani
508
110k
Responsive Adventures: Dirty Tricks From The Dark Corners of Front-End
smashingmag
248
20k
Robots, Beer and Maslow
schacon
PRO
157
8.2k
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