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
550
What happens in Laravel 4 bootstraping
介紹 Laravel 4 的啟動過程
大澤木小鐵
December 16, 2014
Tweet
Share
More Decks by 大澤木小鐵
See All by 大澤木小鐵
Effective Unit Testing
jaceju
3
580
JSConf Asia 2014 Sessions
jaceju
4
400
Deal with Laravel assets by Bower & Gulp
jaceju
30
2k
Leaning MVC By Example
jaceju
0
360
ng-conf_2014
jaceju
2
990
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
380
jQuery vs AngularJS, dochi?
jaceju
20
2.9k
Begining Composer
jaceju
24
5.2k
Checkup your web pages
jaceju
44
3.2k
Other Decks in Programming
See All in Programming
クリーンアーキテクチャから見る依存の向きの大切さ
shimabox
5
1.1k
機能が複雑化しても 頼りになる FactoryBotの話
tamikof
1
220
未経験でSRE、はじめました! 組織を支える役割と軌跡
curekoshimizu
1
170
新宿駅構内を三人称視点で探索してみる
satoshi7190
2
120
推しメソッドsource_locationのしくみを探る - はじめてRubyのコードを読んでみた
nobu09
2
340
CDKを使ったPagerDuty連携インフラのテンプレート化
shibuya_shogo
0
110
DevNexus - Create AI Infused Java Apps with LangChain4j
kdubois
0
110
CloudNativePGを布教したい
nnaka2992
0
120
kintone開発を効率化するためにチームで試した施策とその結果を大放出!
oguemon
0
170
Ça bouge du côté des animations CSS !
goetter
2
150
データベースのオペレーターであるCloudNativePGがStatefulSetを使わない理由に迫る
nnaka2992
0
240
JAWS Days 2025のインフラ
komakichi
1
100
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
175
52k
Music & Morning Musume
bryan
46
6.4k
The Straight Up "How To Draw Better" Workshop
denniskardys
232
140k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Reflections from 52 weeks, 52 projects
jeffersonlam
348
20k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
430
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
27
1.9k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
44
7k
Agile that works and the tools we love
rasmusluckow
328
21k
Imperfection Machines: The Place of Print at Facebook
scottboms
267
13k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
Measuring & Analyzing Core Web Vitals
bluesmoon
6
260
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