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
Symfony 4.2
Search
Tim Jabs
November 28, 2018
Education
0
580
Symfony 4.2
A talk about symfony 4.2.
Tim Jabs
November 28, 2018
Tweet
Share
More Decks by Tim Jabs
See All by Tim Jabs
Symfony 4.2 updated
rubinum
0
110
Symfony 4.1 What's New?
rubinum
4
1.1k
Other Decks in Education
See All in Education
Canva
matleenalaakso
0
100
Data Presentation - Lecture 5 - Information Visualisation (4019538FNR)
signer
PRO
0
1.7k
使用済燃料再処理等実施中期計画
hide2kano
0
150
1 занятие. План курса бизнес-моделей и блок "сегментирование" #ideaNN 19.01.2024.
karlov
0
230
「ロータリーって何?」と訊かれたら:国際ロータリー 2720地区 2023-2024年度 公共イメージ部門 副委員長・ 熊本南ロータリークラブ・ 株式会社ヒデコーポレーション 代表 大津 英敬 氏
2720japanoke
0
530
スクフェスの学びにチームを惹き込め! 社内同時視聴会のすゝめ!
pokotyamu
0
550
全員参加型で会社を強くしていく活動を考えてみる
ikefukurou777
0
160
Tangible, Embedded and Embodied Interaction - Lecture 9 - Next Generation User Interfaces (4018166FNR)
signer
PRO
0
1.2k
【業務イメージスライド】コンサル_メルカリの成長戦略_セナカインターン
cenaka_intern
0
190
リンゴゲームと貧富の差 / Origin of the disparity of wealth
kaityo256
PRO
12
13k
2023年度秋学期 統計学 第14回 分布についての仮説を検証する― 仮説検定(1) (2024. 1. 9)
akiraasano
PRO
0
120
Data Processing and Visualisation Frameworks - Lecture 6 - Information Visualisation (4019538FNR)
signer
PRO
1
1.7k
Featured
See All Featured
Mobile First: as difficult as doing things right
swwweet
215
8.5k
What's in a price? How to price your products and services
michaelherold
236
11k
WebSockets: Embracing the real-time Web
robhawkes
59
6.9k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
355
22k
ParisWeb 2013: Learning to Love: Crash Course in Emotional UX Design
dotmariusz
101
6.6k
A Philosophy of Restraint
colly
195
15k
How STYLIGHT went responsive
nonsquared
92
4.7k
Faster Mobile Websites
deanohume
296
30k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
34
8.8k
Clear Off the Table
cherdarchuk
82
310k
GitHub's CSS Performance
jonrohan
1023
450k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
352
28k
Transcript
SYMFONY 4.2 WHAT'S NEW? 1
Who am I? Tim Jabs Software Developer @Sensiolabs Deutschland
2
3
4 Symfony 4.2
DEPRECATIONS !5
DEPRECATIONS !6
DEPRECATIONS !7 Deprecated template directory: old default: src/Resources/views/ new default:
templates/ How can I change this? config/packages/twig.yaml twig.default_path
DEPRECATIONS !8 Deprecated the Kernel name and root dir: No
more: KernelInterface::getName()/ getRootDir() => getProjectDir() If you need a distinctive ID for the kernel: KernelInterface::getContainerClass()
DEPRECATIONS !9 Deprecated ContainerAwareCommand class: No more: ContainerAwareCommand Use: Command
+ proper dependency injection
DEPRECATIONS !10 Deprecated Controller Class: No more: Controller $this->get(FooClass::class) Use:
AbstractController + proper dependency injection
DEPRECATIONS !11
DEPRECATIONS !12
DEPRECATIONS !13 Deprecated process commands as string:
SIDE NOTE !14 before: after:
DEPRECATIONS !15 Deprecated tree builders without root nodes:
DEPRECATIONS !16 Take care! There are even more deprecations take
this https://github.com/symfony/symfony/blob/4.2/ UPGRADE-4.2.md
NEW COMPONENT !17 VarExporter Example: export($data)
ENV FILE PER ENVIRONMENT !18
ENV FILE PER ENVIRONMENT !19 No More: .env.dist But: .env
is part of of the repository now
ENV FILE PER ENVIRONMENT !20 before: .env after: .env .env.test
.env.dev .env.dev.local
ENV FILE PER ENVIRONMENT !21 //.env DATABASE_URL: … DATABASE_URL_TEST: …
DATABASE_URL_TEST_LOCAL: …
TRANSLATION RELATED IMPROVEMENTS !22
TRANSLATION RELATED IMPROVEMENTS !23 before:
TRANSLATION RELATED IMPROVEMENTS !24 after:
TRANSLATION RELATED IMPROVEMENTS !25 ICU parent locales as fallback: Example:
before: es_AR => es after: es_AR => es_419 => es
TRANSLATION RELATED IMPROVEMENTS !26 Update XLF translations by default: before:
bin/console translation:update // output default JSON after: bin/console translation:update // output default XLF
TRANSLATION RELATED IMPROVEMENTS !27 Lint multiple XLIFF dirs or files:
bin/console lint:xliff supports multiple directories now
AUTOWIRING BY TYPE AND NAME !28
AUTOWIRING BY TYPE AND NAME !29
AUTOWIRING BY TYPE AND NAME !30
CACHE STAMPEDE !31
CACHE STAMPEDE !32
CACHE STAMPEDE !33
SECURITY !34
SECURITY !35 Detailed security voters decisions
SECURITY !36 before:
SECURITY !37 after:
FORMS !38
FORMS !39 Clear form errors:
FORMS !40 Improved form type extension
FORMS !41 before: Improved form type extension
FORMS !42 before: Improved form type extension
FORMS !43 after: Improved form type extension
FORMS !44 Improved form type extension
DIVISIBLE CONSTRAINT !45
THANK YOU 46
REFERENCES !47 Overview: https://symfony.com/blog/symfony-4-2-curated-new-features Changelog: https://symfony.com/blog/symfony-4-2-0-beta1-released https://symfony.com/blog/symfony-4-2-0-beta2-released Translations: https://symfony.com/blog/new-in-symfony-4-2-translation-related-improvements
https://symfony.com/blog/new-in-symfony-4-2-intlmessageformatter Deprecations: https://symfony.com/blog/new-in-symfony-4-2-important-deprecations Security: https://symfony.com/blog/new-in-symfony-4-2-samesite-cookie-configuration https://symfony.com/blog/new-in-symfony-4-2-auto-secure-cookies https://symfony.com/blog/new-in-symfony-4-2-detailed-security-voters-decisions
REFERENCES !48 Forms: https://symfony.com/blog/new-in-symfony-4-2-clear-form-errors https://symfony.com/blog/new-in-symfony-4-2-improved-form-type-extensions Misc: https://symfony.com/blog/new-in-symfony-4-2-cache-stampede-protection https://symfony.com/blog/new-in-symfony-4-2-divisibleby-constraint https://symfony.com/blog/new-in-symfony-4-2-addlink-shortcut https://symfony.com/blog/new-in-symfony-4-2-define-env-vars-per-environment
https://symfony.com/blog/new-in-symfony-4-2-acceptable-request-formats https://symfony.com/blog/new-in-symfony-4-2-simpler-custom-serialized-names https://symfony.com/blog/new-in-symfony-4-2-wait-until-processes-are-ready https://symfony.com/blog/new-in-symfony-4-2-varexporter-component https://symfony.com/blog/new-in-symfony-4-2-console-tables-improvements https://symfony.com/blog/new-in-symfony-4-2-pdo-based-lock-storage https://symfony.com/blog/new-in-symfony-4-2-autowiring-by-type-and-name https://symfony.com/blog/new-in-symfony-4-2-simpler-functional-tests https://symfony.com/doc/current/configuration/dot-env-changes.html