Skip to content

Commit d1b53cf

Browse files
committed
feature #3179 [Vue] Remove deprecations for 3.0 (Kocal)
This PR was merged into the 3.x branch. Discussion ---------- [Vue] Remove deprecations for 3.0 | Q | A | -------------- | --- | Bug fix? | no | New feature? | yes <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- if yes, also update UPGRADE-*.md and src/**/CHANGELOG.md --> | Documentation? | no <!-- required for new features, or documentation updates --> | Issues | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT <!-- Replace this notice by a description of your feature/bugfix. This will help reviewers and should be a good start for the documentation. Additionally (see https://symfony.com/releases): - Always add tests and ensure they pass. - For new features, provide some code snippets to help understand usage. - Features and deprecations must be submitted against branch main. - Update/add documentation as required (we can help!) - Changelog entry should follow https://symfony.com/doc/current/contributing/code/conventions.html#writing-a-changelog-entry - Never break backward compatibility (see https://symfony.com/bc). --> Looks like #3101 disappeared when rebasing/merging #3103...? Commits ------- f4db350 [Vue] Remove deprecations for 3.0
2 parents ba5dc0a + f4db350 commit d1b53cf

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

src/Vue/src/Twig/VueComponentExtension.php

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
namespace Symfony\UX\Vue\Twig;
1313

1414
use Symfony\UX\StimulusBundle\Helper\StimulusHelper;
15-
use Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension;
1615
use Twig\Extension\AbstractExtension;
1716
use Twig\TwigFunction;
1817

@@ -24,19 +23,8 @@
2423
*/
2524
class VueComponentExtension extends AbstractExtension
2625
{
27-
private $stimulusHelper;
28-
29-
/**
30-
* @param $stimulus StimulusHelper
31-
*/
32-
public function __construct(StimulusHelper|StimulusTwigExtension $stimulus)
26+
public function __construct(private StimulusHelper $stimulusHelper)
3327
{
34-
if ($stimulus instanceof StimulusTwigExtension) {
35-
trigger_deprecation('symfony/ux-vue', '2.9', 'Passing an instance of "%s" to "%s" is deprecated, pass an instance of "%s" instead.', StimulusTwigExtension::class, __CLASS__, StimulusHelper::class);
36-
$stimulus = new StimulusHelper(null);
37-
}
38-
39-
$this->stimulusHelper = $stimulus;
4028
}
4129

4230
public function getFunctions(): array

0 commit comments

Comments
 (0)