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
350
Deal with Laravel assets by Bower & Gulp
jaceju
30
1.9k
Leaning MVC By Example
jaceju
0
320
ng-conf_2014
jaceju
2
920
The Power of JavaScript in JSConf.Asia 2013
jaceju
5
360
jQuery vs AngularJS, dochi?
jaceju
20
2.8k
Begining Composer
jaceju
24
4.8k
Checkup your web pages
jaceju
44
3.1k
Other Decks in Programming
See All in Programming
Dockerで始めるAWS Lambda開発
stutkhd0709
14
2.5k
チームでモデリングを育てるうえで 考えたこと・気づいたこと / Cultivating Modeling in Teams: Thoughts and Insights
mackey0225
5
2.4k
Deno に Web 標準 API を実装する / Implementing Web Standard API to Deno
petamoriken
0
350
今の SmartHR にエンジニアで入社するとどうなるの?
daisukeshinoku
3
1.5k
WinUI 3デモ - "CommunityToolkit.Mvvm"NuGetパッケージ編
andrewkeepcoding
0
140
とにかくHTTP3をライトニングに話す / Anyway, I'll talk to Lightning about HTTP3.
seike460
PRO
0
120
プロンプトエンジニアリング入門
tomokusaba
2
990
孤独のCTOグルメという やや奇抜な企画をやった目的と効果
shoheimitani
3
1k
フロントエンドパフォーマンス 入門
shouta2
7
1.5k
受託開発でGitLab CI を活用していく
xiombatsg
1
130
脱・初心者!脱・マネコン!AWS CDKを使ってみませんか!?
har1101
0
180
Swiftの型推論を学ぼう | Let's Learn About Type Inference in Swift
omochi
2
740
Featured
See All Featured
jQuery: Nuts, Bolts and Bling
dougneiner
57
7.1k
A Tale of Four Properties
chriscoyier
150
22k
No one is an island. Learnings from fostering a developers community.
thoeni
14
2k
Being A Developer After 40
akosma
56
580k
GitHub's CSS Performance
jonrohan
1023
450k
GraphQLの誤解/rethinking-graphql
sonatard
48
9.1k
Building a Scalable Design System with Sketch
lauravandoore
455
32k
Optimising Largest Contentful Paint
csswizardry
7
2.3k
How to Ace a Technical Interview
jacobian
272
22k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
12
1.4k
Code Reviewing Like a Champion
maltzj
512
39k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
5
1.4k
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