I am following this tutorial about authentication
I have a custom security class called FormLoginAuthenticator.php
use Symfony\Component\Security\Guard\Authenticator\AbstractFormLoginAuthenticator;
use Symfony\Component\Security\Core\Security;
abstract class FormLoginAuthenticator extends AbstractFormLoginAuthenticator
{
protected $router;
protected $enconder;
public function __construct(RouterInterface $router, UserPasswordEncoderInterface $encoder)
{
$this->router = $router;
$this->encoder = $encoder;
}
}
which extends the AbstractFormLoginAuthenticator from the symfony guard component which itself is a abstract class. However I keep gettting
Cannot instantiate abstract class App\Security\FormLoginAuthenticator
I have read about extending abstract classes and if my custom class has more than 1 abstract method I should use prefix the class keyword with `abstract. However I get that error when I added the abstract keyword. How to get around this problem