File tree Expand file tree Collapse file tree 2 files changed +2
-47
lines changed Expand file tree Collapse file tree 2 files changed +2
-47
lines changed Original file line number Diff line number Diff line change @@ -596,11 +596,11 @@ TwigBundle
596
596
FrameworkBundle
597
597
---------------
598
598
599
- * The ` templating.helper.assets ` was refactored and returns now an object of the type
599
+ * The ` templating.helper.assets ` service was refactored and now returns an object of type
600
600
` Symfony\Bundle\FrameworkBundle\Templating\Helper\AssetsHelper ` instead of
601
601
` Symfony\Component\Templating\Helper\CoreAssetsHelper ` . You can update your class definition
602
602
or use the ` assets.packages ` service instead. Using the ` assets.packages ` service is the recommended
603
- way. The ` templating.helper.assets ` service will be removed in Symfony 3.0.
603
+ way.
604
604
605
605
Before:
606
606
Original file line number Diff line number Diff line change @@ -388,51 +388,6 @@ UPGRADE FROM 2.x to 3.0
388
388
* The ` request ` service was removed. You must inject the ` request_stack `
389
389
service instead.
390
390
391
- * The ` templating.helper.assets ` was removed in Symfony 3.0. You should
392
- use the ` assets.package ` service instead.
393
-
394
- Before:
395
-
396
- ``` php
397
- use Symfony\Component\Templating\Helper\CoreAssetsHelper;
398
-
399
- class DemoService
400
- {
401
- private $assetsHelper;
402
-
403
- public function __construct(CoreAssetsHelper $assetsHelper)
404
- {
405
- $this->assetsHelper = $assetsHelper;
406
- }
407
-
408
- public function testMethod()
409
- {
410
- return $this->assetsHelper->getUrl('thumbnail.png', null, $this->assetsHelper->getVersion());
411
- }
412
- }
413
- ```
414
-
415
- After:
416
-
417
- ``` php
418
- use Symfony\Component\Asset\Packages;
419
-
420
- class DemoService
421
- {
422
- private $assetPackages;
423
-
424
- public function __construct(Packages $assetPackages)
425
- {
426
- $this->assetPackages = $assetPackages;
427
- }
428
-
429
- public function testMethod()
430
- {
431
- return $this->assetPackages->getUrl('thumbnail.png').$this->assetPackages->getVersion();
432
- }
433
- }
434
- ```
435
-
436
391
* The ` enctype ` method of the ` form ` helper was removed. You should use the
437
392
new method ` start ` instead.
438
393
You can’t perform that action at this time.
0 commit comments