SlideShare a Scribd company logo
Submit Search
Upload
Symfony 2.5について
Report
Share
Issei Murasawa
Follow
•
5 likes
•
4,759 views
1
of
39
Symfony 2.5について
•
5 likes
•
4,759 views
Report
Share
Download Now
Download to read offline
Technology
Symfony 勉強会 #9 で発表した内容
Read more
Issei Murasawa
Follow
Recommended
Symfony Deployment with Capifony #symfony_ja by
Symfony Deployment with Capifony #symfony_ja
Tak Nishikori
4.1K views
•
16 slides
Symfony勉強会#9 form by
Symfony勉強会#9 form
Yuichi Okada
4.8K views
•
30 slides
著名PHPアプリの脆弱性に学ぶセキュアコーディングの原則 by
著名PHPアプリの脆弱性に学ぶセキュアコーディングの原則
Hiroshi Tokumaru
71.5K views
•
86 slides
ChatGPT and the Future of Work - Clark Boyd by
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
21.3K views
•
69 slides
Getting into the tech field. what next by
Getting into the tech field. what next
Tessa Mero
5.2K views
•
22 slides
Google's Just Not That Into You: Understanding Core Updates & Search Intent by
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
5.9K views
•
99 slides
More Related Content
Recently uploaded
01Booster Studio ご紹介資料 by
01Booster Studio ご紹介資料
ssusere7a2172
300 views
•
19 slides
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20... by
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20...
NTT DATA Technology & Innovation
73 views
•
42 slides
SSH応用編_20231129.pdf by
SSH応用編_20231129.pdf
icebreaker4
172 views
•
13 slides
SNMPセキュリティ超入門 by
SNMPセキュリティ超入門
mkoda
175 views
•
15 slides
JJUG CCC.pptx by
JJUG CCC.pptx
Kanta Sasaki
6 views
•
14 slides
pgvectorを使ってChatGPTとPostgreSQLを連携してみよう!(PostgreSQL Conference Japan 2023 発表資料) by
pgvectorを使ってChatGPTとPostgreSQLを連携してみよう!(PostgreSQL Conference Japan 2023 発表資料)
NTT DATA Technology & Innovation
233 views
•
63 slides
Recently uploaded
(12)
01Booster Studio ご紹介資料 by ssusere7a2172
01Booster Studio ご紹介資料
ssusere7a2172
•
300 views
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20... by NTT DATA Technology & Innovation
今、改めて考えるPostgreSQLプラットフォーム - マルチクラウドとポータビリティ -(PostgreSQL Conference Japan 20...
NTT DATA Technology & Innovation
•
73 views
SSH応用編_20231129.pdf by icebreaker4
SSH応用編_20231129.pdf
icebreaker4
•
172 views
SNMPセキュリティ超入門 by mkoda
SNMPセキュリティ超入門
mkoda
•
175 views
JJUG CCC.pptx by Kanta Sasaki
JJUG CCC.pptx
Kanta Sasaki
•
6 views
pgvectorを使ってChatGPTとPostgreSQLを連携してみよう!(PostgreSQL Conference Japan 2023 発表資料) by NTT DATA Technology & Innovation
pgvectorを使ってChatGPTとPostgreSQLを連携してみよう!(PostgreSQL Conference Japan 2023 発表資料)
NTT DATA Technology & Innovation
•
233 views
Windows 11 information that can be used at the development site by Atomu Hidaka
Windows 11 information that can be used at the development site
Atomu Hidaka
•
71 views
Web3 Career_クレデン資料 .pdf by nanamatsuo
Web3 Career_クレデン資料 .pdf
nanamatsuo
•
14 views
速習! PostgreSQL専用HAソフトウェア: Patroni(PostgreSQL Conference Japan 2023 発表資料) by NTT DATA Technology & Innovation
速習! PostgreSQL専用HAソフトウェア: Patroni(PostgreSQL Conference Japan 2023 発表資料)
NTT DATA Technology & Innovation
•
13 views
さくらのひやおろし2023 by 法林浩之
さくらのひやおろし2023
法林浩之
•
91 views
The Things Stack説明資料 by The Things Industries by CRI Japan, Inc.
The Things Stack説明資料 by The Things Industries
CRI Japan, Inc.
•
41 views
「概念モデリング自動化に向けた第一歩」 ~ ChatGPT・Open AI 活用による開発対象のモデル化 by Knowledge & Experience
「概念モデリング自動化に向けた第一歩」 ~ ChatGPT・Open AI 活用による開発対象のモデル化
Knowledge & Experience
•
8 views
Featured
Time Management & Productivity - Best Practices by
Time Management & Productivity - Best Practices
Vit Horky
169.7K views
•
42 slides
The six step guide to practical project management by
The six step guide to practical project management
MindGenius
36.6K views
•
27 slides
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
12.6K views
•
21 slides
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
55.4K views
•
138 slides
12 Ways to Increase Your Influence at Work by
12 Ways to Increase Your Influence at Work
GetSmarter
401.6K views
•
64 slides
ChatGPT webinar slides by
ChatGPT webinar slides
Alireza Esmikhani
30.3K views
•
36 slides
Featured
(20)
Time Management & Productivity - Best Practices by Vit Horky
Time Management & Productivity - Best Practices
Vit Horky
•
169.7K views
The six step guide to practical project management by MindGenius
The six step guide to practical project management
MindGenius
•
36.6K views
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright... by RachelPearson36
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
•
12.6K views
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present... by Applitools
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
•
55.4K views
12 Ways to Increase Your Influence at Work by GetSmarter
12 Ways to Increase Your Influence at Work
GetSmarter
•
401.6K views
ChatGPT webinar slides by Alireza Esmikhani
ChatGPT webinar slides
Alireza Esmikhani
•
30.3K views
More than Just Lines on a Map: Best Practices for U.S Bike Routes by Project for Public Spaces & National Center for Biking and Walking
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
•
6.9K views
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G... by DevGAMM Conference
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
•
3.6K views
Barbie - Brand Strategy Presentation by Erica Santiago
Barbie - Brand Strategy Presentation
Erica Santiago
•
25.1K views
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well by Saba Software
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Saba Software
•
25.2K views
Introduction to C Programming Language by Simplilearn
Introduction to C Programming Language
Simplilearn
•
8.4K views
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr... by Palo Alto Software
The Pixar Way: 37 Quotes on Developing and Maintaining a Creative Company (fr...
Palo Alto Software
•
88.3K views
9 Tips for a Work-free Vacation by Weekdone.com
9 Tips for a Work-free Vacation
Weekdone.com
•
7.2K views
I Rock Therefore I Am. 20 Legendary Quotes from Prince by Empowered Presentations
I Rock Therefore I Am. 20 Legendary Quotes from Prince
Empowered Presentations
•
142.8K views
How to Map Your Future by SlideShop.com
How to Map Your Future
SlideShop.com
•
275.1K views
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -... by AccuraCast
Beyond Pride: Making Digital Marketing & SEO Authentically LGBTQ+ Inclusive -...
AccuraCast
•
3.4K views
Read with Pride | LGBTQ+ Reads by Kayla Martin-Gant
Read with Pride | LGBTQ+ Reads
Kayla Martin-Gant
•
1.1K views
Exploring ChatGPT for Effective Teaching and Learning.pptx by Stan Skrabut, Ed.D.
Exploring ChatGPT for Effective Teaching and Learning.pptx
Stan Skrabut, Ed.D.
•
57.6K views
How to train your robot (with Deep Reinforcement Learning) by Lucas García, PhD
How to train your robot (with Deep Reinforcement Learning)
Lucas García, PhD
•
42.5K views
4 Strategies to Renew Your Career Passion by Daniel Goleman
4 Strategies to Renew Your Career Passion
Daniel Goleman
•
122K views
Symfony 2.5について
1.
Symfony 2.5について 新機能とか変更点 @Issei_M
2.
自己紹介 ● Issei_M ● 埼玉のベンチャーで働いています ●
Webとインフラと時々iOS ● PHP歴:6年 ● Symfony歴: ○ 1.4:業務で3年ほど ○ 2.x:趣味で2年、業務で3ヶ月
3.
自己紹介 ● Issei_M ● 埼玉のベンチャーで働いています ●
Webとインフラと時々iOS ● PHP歴:6年 ● Symfony歴: ○ 1.4:業務で3年ほど ○ 2.x:趣味で2年、業務で3ヶ月 ● LT初めて(←ここ重要)
4.
● 2.3(LTS)から2度めのリリース ● 2.4と同様、通常リリース →8ヶ月のバグフィクス、14ヶ月のセキュリティ保守 ●
現在はBETA1、5月に正式リリース予定 Symfony 2.5の概要
5.
フォーム周りの改善 1. デバッグプロファイラの改善
6.
2.4で追加されたフォームのプロファイラ
7.
2.5からは...
8.
2.5からは...
9.
ツリーが開閉可能に(しかも状態を記憶してくれる)
10.
エラーの有無がわかりやすくなった
11.
特にこれ
12.
エラーの原因が明確に!
13.
例えばこんな時
14.
2.4:フォームに無いフィールドでバリデーションエラーが起きると分かりづらい (validation_groupsミスった時)
15.
2.5からはエラーのパスが表示される 本フォームとは関係ないフィールドのエラーがマップされているのが分かる!
16.
フォーム周りの改善 2. FormInterface::getErrors() の改善
17.
2.4以前
18.
2.5からはオプションが2つ追加された
19.
よくあるフォーム
20.
クラス図 ルート (普通はここだけ変数に入れて使う)
21.
エラー時
22.
エラーは大体末端のフォームにセットされる(単一選択は除く) 全部のエラーを1つの配列にまとめたくなったら...? ルート (普通はここだけ変数に入れて使う)
23.
2.4以前では こんな感じで再帰的に処理しないといけないのでちょっと面倒
24.
2.5からは第1引数を true にすれば一発!
25.
※返り値が配列からFormErrorIterator に変わっている 点だけ注意!
26.
配列を引数に取る関数やメソッドにそのまま渡すとエラーになる! iterator_to_array で変換すること!
27.
新しく追加されたコマンド
28.
translation:debug 指定したバンドル&ロケールの対応状況が一目で分かる。
29.
config:debug 指定したバンドルの現在のコンフィギュレーションをダンプできる。
30.
yaml:lint 指定したYAMLファイルのSyntaxチェック。 ディレクトリやバンドル名を渡すと一括チェックも可能。
31.
その他、細々とした改善のご 紹介
32.
未定義メソッドを実行した時のエラー
33.
未定義メソッドを実行した時のエラー もしかしてコレ...?
34.
Controller::createAccessDeniedException() HttpKernelのAccessDeniedHttpExceptionをスローする人が多いので追加されたのだとか。 正しくはSecurityコンポーネントのAccessDeniedException。
35.
Questionヘルパー(Console) 実行者に入力を求めることができる
36.
Questionヘルパー(Console) 実行例
37.
KernelTestCase WebTestCaseから::createClientを除いただけ。Commandのテストとかに使おう!
38.
その他にもバリデータの追加 など改善点多数!
39.
ありがとうございました!