for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Silverback API Component Bundle Project
*
* (c) Daniel West <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace Silverback\ApiComponentBundle\Action\User;
use Silverback\ApiComponentBundle\Action\AbstractAction;
use Silverback\ApiComponentBundle\Manager\User\PasswordManager;
use Silverback\ApiComponentBundle\Repository\User\UserRepository;
use Silverback\ApiComponentBundle\Serializer\RequestFormatResolver;
use Symfony\Component\Serializer\SerializerInterface;
/**
* @author Daniel West <[email protected]>
abstract class AbstractPasswordAction extends AbstractAction
{
protected UserRepository $userRepository;
protected PasswordManager $passwordManager;
public function __construct(
SerializerInterface $serializer,
RequestFormatResolver $requestFormatResolver,
UserRepository $userRepository,
PasswordManager $passwordManager
) {
parent::__construct($serializer, $requestFormatResolver);
$this->userRepository = $userRepository;
$this->passwordManager = $passwordManager;
}