use Rapsys\UserBundle\RapsysUserBundle;
/**
- * Provides common features needed in controllers.
- *
* {@inheritdoc}
+ *
+ * Provides common features needed in controllers.
*/
abstract class AbstractController extends BaseAbstractController implements ServiceSubscriberInterface {
/**
}
/**
- * Renders a view
- *
* {@inheritdoc}
+ *
+ * Renders a view
*/
protected function render(string $view, array $parameters = [], Response $response = null): Response {
//Create response when null
use Rapsys\UserBundle\RapsysUserBundle;
/**
+ * {@inheritdoc}
+ *
* This is the class that validates and merges configuration from your app/config files.
*
* @link http://symfony.com/doc/current/cookbook/bundles/configuration.html
- *
- * {@inheritdoc}
*/
class Configuration implements ConfigurationInterface {
/**
use Symfony\Component\Security\Core\Exception\AccountStatusException;
/**
- * UnactivatedException is thrown when the user account is unactivated.
- *
* {@inheritdoc}
+ *
+ * UnactivatedException is thrown when the user account is unactivated.
*/
class UnactivatedException extends AccountStatusException {
/**
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\ORM\Repository\RepositoryFactory as RepositoryFactoryInterface;
use Doctrine\Persistence\ObjectRepository;
+
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\Routing\RouterInterface;
use Symfony\Contracts\Translation\TranslatorInterface;
/**
* Default options
*/
- protected array $defaultOptions = [
- 'always_use_default_target_path' => false,
- 'default_target_path' => '/',
- 'login_path' => '/login',
- 'target_path_parameter' => '_target_path',
- 'use_referer' => false,
- ];
+ protected array $defaultOptions = [
+ 'always_use_default_target_path' => false,
+ 'default_target_path' => '/',
+ 'login_path' => '/login',
+ 'target_path_parameter' => '_target_path',
+ 'use_referer' => false,
+ ];
/**
* {@inheritdoc}
$this->setOptions($options);
}
- /**
+ /**
+ * {@inheritdoc}
+ *
* This is called when an interactive authentication attempt succeeds
*
* In use_referer case it will handle correctly when login_path is a route name or path
- *
- * {@inheritdoc}
*/
public function onAuthenticationSuccess(Request $request, TokenInterface $token): Response {
//Set login route
use Rapsys\PackBundle\Util\SluggerUtil;
/**
- * Repository
- *
* {@inheritdoc}
+ *
+ * Repository
*/
class Repository extends EntityRepository {
/**