File tree Expand file tree Collapse file tree 8 files changed +13
-17
lines changed
Filter options
Expand file tree Collapse file tree 8 files changed +13
-17
lines changed
Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ they all have different base paths::
355
355
'doc' => new PathPackage('/somewhere/deep/for/documents', $versionStrategy),
356
356
);
357
357
358
- $packages = new Packages($defaultPackage, $namedPackages)
358
+ $packages = new Packages($defaultPackage, $namedPackages);
359
359
360
360
The ``Packages `` class allows to define a default package, which will be applied
361
361
to assets that don't define the name of package to use. In addition, this
Original file line number Diff line number Diff line change @@ -693,7 +693,7 @@ Learn More
693
693
/http_cache/*
694
694
695
695
.. _Packagist : https://packagist.org/packages/symfony/http-foundation
696
- .. _Nginx : http ://wiki .nginx.org/XSendfile
696
+ .. _Nginx : https ://www .nginx.com/resources/wiki/start/topics/examples/xsendfile/
697
697
.. _Apache : https://tn123.org/mod_xsendfile/
698
698
.. _`JSON Hijacking` : http://haacked.com/archive/2009/06/25/json-hijacking.aspx
699
699
.. _OWASP guidelines : https://www.owasp.org/index.php/OWASP_AJAX_Security_Guidelines#Always_return_JSON_with_an_Object_on_the_outside
Original file line number Diff line number Diff line change @@ -95,21 +95,22 @@ a ``postPersist()`` method, which will be called when the event is dispatched::
95
95
// src/EventListener/SearchIndexer.php
96
96
namespace App\EventListener;
97
97
98
- use Doctrine\ORM\Event\LifecycleEventArgs;
98
+ // for Doctrine < 2.4: use Doctrine\ORM\Event\LifecycleEventArgs;
99
+ use Doctrine\Common\Persistence\Event\LifecycleEventArgs;
99
100
use App\Entity\Product;
100
101
101
102
class SearchIndexer
102
103
{
103
104
public function postPersist(LifecycleEventArgs $args)
104
105
{
105
- $entity = $args->getEntity ();
106
+ $entity = $args->getObject ();
106
107
107
108
// only act on some "Product" entity
108
109
if (!$entity instanceof Product) {
109
110
return;
110
111
}
111
112
112
- $entityManager = $args->getEntityManager ();
113
+ $entityManager = $args->getObjectManager ();
113
114
// ... do something with the Product
114
115
}
115
116
}
@@ -166,11 +167,11 @@ interface and have an event method for each event it subscribes to::
166
167
167
168
public function index(LifecycleEventArgs $args)
168
169
{
169
- $entity = $args->getEntity ();
170
+ $entity = $args->getObject ();
170
171
171
172
// perhaps you only want to act on some "Product" entity
172
173
if ($entity instanceof Product) {
173
- $entityManager = $args->getEntityManager ();
174
+ $entityManager = $args->getObjectManager ();
174
175
// ... do something with the Product
175
176
}
176
177
}
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ Other Front-End Articles
103
103
.. _`Webpack Encore` : https://www.npmjs.com/package/@symfony/webpack-encore
104
104
.. _`Webpack` : https://webpack.js.org/
105
105
.. _`Webpacker` : https://github.com/rails/webpacker
106
- .. _`Mix` : https://laravel.com/docs/5.4/ mix
106
+ .. _`Mix` : https://laravel.com/docs/mix
107
107
.. _`Symfony` : http://symfony.com/
108
108
.. _`Full API` : https://github.com/symfony/webpack-encore/blob/master/index.js
109
109
.. _`Webpack Encore screencast series` : https://knpuniversity.com/screencast/webpack-encore
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Now that ``bootstrap`` lives in your ``node_modules/`` directory, you can
16
16
import it from any Sass or JavaScript file. For example, if you already have
17
17
a ``global.scss `` file, import it from there:
18
18
19
- .. code-block :: css
19
+ .. code-block :: scss
20
20
21
21
// assets/css/global.scss
22
22
Original file line number Diff line number Diff line change @@ -20,8 +20,6 @@ Validation Constraints Reference
20
20
constraints/Ip
21
21
constraints/Uuid
22
22
23
- constraints/Range
24
-
25
23
constraints/EqualTo
26
24
constraints/NotEqualTo
27
25
constraints/IdenticalTo
@@ -30,6 +28,7 @@ Validation Constraints Reference
30
28
constraints/LessThanOrEqual
31
29
constraints/GreaterThan
32
30
constraints/GreaterThanOrEqual
31
+ constraints/Range
33
32
34
33
constraints/Date
35
34
constraints/DateTime
Original file line number Diff line number Diff line change @@ -22,11 +22,6 @@ String Constraints
22
22
* :doc:`Ip </ reference/constraints/Ip> `
23
23
* :doc:`Uuid</ reference/constraints/Uuid> `
24
24
25
- Number Constraints
26
- ~~~~~~~~~~~~~~~~~~
27
-
28
- * :doc:`Range </ reference/constraints/Range> `
29
-
30
25
Comparison Constraints
31
26
~~~~~~~~~~~~~~~~~~~~~~
32
27
@@ -38,6 +33,7 @@ Comparison Constraints
38
33
* :doc:`LessThanOrEqual </ reference/constraints/LessThanOrEqual> `
39
34
* :doc:`GreaterThan </ reference/constraints/GreaterThan> `
40
35
* :doc:`GreaterThanOrEqual </ reference/constraints/GreaterThanOrEqual> `
36
+ * :doc:`Range </ reference/constraints/Range> `
41
37
42
38
Date Constraints
43
39
~~~~~~~~~~~~~~~~
Original file line number Diff line number Diff line change @@ -1038,7 +1038,7 @@ Learn more
1038
1038
* :doc: `/components/css_selector `
1039
1039
1040
1040
.. _`PHPUnit` : https://phpunit.de/
1041
- .. _`documentation` : https://phpunit.de/manual/current/en /
1041
+ .. _`documentation` : https://phpunit.readthedocs.io /
1042
1042
.. _`PHPUnit Bridge component` : https://symfony.com/components/PHPUnit%20Bridge
1043
1043
.. _`$_SERVER` : https://php.net/manual/en/reserved.variables.server.php
1044
1044
.. _`data providers` : https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers
You can’t perform that action at this time.
0 commit comments