Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit552c488

Browse files
committed
Merge branch '3.4' into 4.1
* 3.4: [#10308] add use statement and fix array Encourage use of constants Update code-splitting.rst delete var_dump() functions in examples Update image to reflect given state machine example configuration
2 parentsa1d6bbb +c9b77a7 commit552c488

File tree

4 files changed

+4
-7
lines changed

4 files changed

+4
-7
lines changed
-20.7 KB
Loading

‎components/event_dispatcher/generic_event.rst‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ access the event arguments::
7676
);
7777
$dispatcher->dispatch('foo', $event);
7878

79-
var_dump($event['counter']);
80-
8179
class FooListener
8280
{
8381
public function handler(GenericEvent $event)
@@ -97,8 +95,6 @@ Filtering data::
9795
$event = new GenericEvent($subject, array('data' => 'Foo'));
9896
$dispatcher->dispatch('foo', $event);
9997

100-
var_dump($event['data']);
101-
10298
class FooListener
10399
{
104100
public function filter(GenericEvent $event)

‎doctrine/event_listeners_subscribers.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,14 +144,15 @@ interface and have an event method for each event it subscribes to::
144144
// for Doctrine < 2.4: use Doctrine\ORM\Event\LifecycleEventArgs;
145145
use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
146146
use App\Entity\Product;
147+
use Doctrine\ORM\Events;
147148

148149
class SearchIndexerSubscriber implements EventSubscriber
149150
{
150151
public function getSubscribedEvents()
151152
{
152153
return array(
153-
'postPersist',
154-
'postUpdate',
154+
Events::postPersist,
155+
Events::postUpdate,
155156
);
156157
}
157158

‎frontend/encore/code-splitting.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ clicked a link:
2020
constplayer=newVideoPlayer('some-element');
2121
});
2222
23-
In this example, theVidePlayer module and everything it imports will be packaged
23+
In this example, theVideoPlayer module and everything it imports will be packaged
2424
into the final, built JavaScript file, even though it may not be very common for
2525
someone to actually need it. A better solution is to use `dynamic imports`_: load
2626
the code via AJAX when it's needed:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp