8000 Merge remote branch 'hidenorigoto/translate-UPDATE-file' · sebhoerl/symfony@24cc864 · GitHub
[go: up one dir, main page]

Skip to content

Commit 24cc864

Browse files
committed
Merge remote branch 'hidenorigoto/translate-UPDATE-file'
* hidenorigoto/translate-UPDATE-file: translated UPDATE.md file into Japanese
2 parents 9ce549d + 5c93687 commit 24cc864

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

UPDATE.ja.md

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
プロジェクトをアップデートする方法
2+
==================================
3+
4+
このドキュメントでは、Symfony2 PRの特定のバージョンから1つ次のバージョンへアップデートする方法を説明します。
5+
このドキュメントでは、フレームワークの "パブリックな" APIを使っている場合に必要な変更点についてのみ説明しています。
6+
フレームワークのコアコードを "ハック" している場合は、変更履歴を注意深く追跡する必要があるでしょう。
7+
8+
PR8 から PR9
9+
------------
10+
11+
* `Symfony\Bundle\FrameworkBundle\Util\Filesystem` は、`Symfony\Component\HttpKernel\Util\Filesystem` へ移動されました
12+
13+
* `Execute` 制約は、`Callback` 制約に名前が変更されました
14+
15+
* HTTPの例外クラスのシグニチャが変更されました:
16+
17+
変更前:
18+
19+
throw new NotFoundHttpException('Not Found', $message, 0, $e);
20+
21+
変更後:
22+
23+
throw new NotFoundHttpException($message, $e);
24+
25+
* RequestMatcher クラスでは、正規表現に `^``$` が自動的には追加されなくなりました
26+
27+
この変更によって、セキュリティの設定をたとえば次のように変更する必要があります:
28+
29+
変更前:
30+
31+
profiler:
32+
pattern: /_profiler/.*
33+
34+
変更後:
35+
36+
profiler:
37+
pattern: ^/_profiler
38+
39+
* `app/` ディレクトリ以下のグローバルテンプレートの位置が変更されました(古いディレクトリでは動作しなくなります):
40+
41+
変更前:
42+
43+
app/views/base.html.twig
44+
app/views/AcmeDemoBundle/base.html.twig
45+
46+
変更後:
47+
48+
app/Resources/views/base.html.twig
49+
app/Resources/AcmeDemo/views/base.html.twig
50+
51+
* バリデータの名前空間が `validation` から `assert` へ変更されました:
52+
53+
変更前:
54+
55+
@validation:NotNull
56+
57+
変更後:
58+
59+
@assert:NotNull
60+
61+
さらに、いくつかの制約で使われていた `Assert` プレフィックスは削除されました(`AssertTrue` から `True` へ変更)
62+
63+
* バンドルの論理名に、`Bundle` サフィックスをつける必要がなくなりました:
64+
65+
*コントローラ*: `BlogBundle:Post:show` -> `Blog:Post:show`
66+
67+
*テンプレート*: `BlogBundle:Post:show.html.twig` -> `Blog:Post:show.html.twig`
68+
69+
*リソース*: `@BlogBundle/Resources/config/blog.xml` -> `@Blog/Resources/config/blog.xml`
70+
71+
*Doctrine*: `$em->find('BlogBundle:Post', $id)` -> `$em->find('Blog:Post', $id)`

0 commit comments

Comments
 (0)
0