Skip to content

Commit 499df05

Browse files
committed
make reset password maker compatible with maker-bundle
1 parent 8132374 commit 499df05

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

src/Maker/MakeResetPassword.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony MakerBundle package.
5+
*
6+
* (c) Fabien Potencier <[email protected]>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
namespace Symfony\Bundle\MakerBundle\Maker;
413

514
use Symfony\Bundle\MakerBundle\ConsoleStyle;
@@ -8,7 +17,6 @@
817
use Symfony\Bundle\MakerBundle\FileManager;
918
use Symfony\Bundle\MakerBundle\Generator;
1019
use Symfony\Bundle\MakerBundle\InputConfiguration;
11-
use Symfony\Bundle\MakerBundle\Maker\AbstractMaker;
1220
use Symfony\Bundle\MakerBundle\Security\InteractiveSecurityHelper;
1321
use Symfony\Bundle\MakerBundle\Util\YamlSourceManipulator;
1422
use Symfony\Bundle\MakerBundle\Validator;
@@ -18,7 +26,7 @@
1826
use Symfony\Component\Console\Question\Question;
1927
use SymfonyCasts\Bundle\ResetPassword\SymfonyCastsResetPasswordBundle;
2028

21-
class MakeResetPassword
29+
class MakeResetPassword extends AbstractMaker
2230
{
2331
/**
2432
* @var FileManager

src/Resources/config/makers.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@
7373
<tag name="maker.command" />
7474
</service>
7575

76+
<service id="maker.maker.make_reset_password" class="Symfony\Bundle\MakerBundle\Maker\MakeResetPassword">
77+
<argument type="service" id="maker.file_manager" />
78+
<tag name="maker.command" />
79+
</service>
80+
7681
<service id="maker.maker.make_serializer_encoder" class="Symfony\Bundle\MakerBundle\Maker\MakeSerializerEncoder">
7782
<tag name="maker.command" />
7883
</service>

0 commit comments

Comments
 (0)