*/ private array $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->parent = false; $this->blocks = [ ]; } protected function doDisplay(array $context, array $blocks = []): iterable { $macros = $this->macros; $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"]; $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Maker/security/UserProvider.tpl.php")); $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"]; $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@Maker/security/UserProvider.tpl.php")); // line 1 yield " namespace ; class implements UserProviderInterface, PasswordUpgraderInterface { /** * Symfony calls this method if you use features like switch_user * or remember_me. * * If you're not using these features, you do not need to implement * this method. * * @throws UserNotFoundException if the user is not found */ public function loadUserByIdentifier(\$identifier): UserInterface { // Load a User object from your data source or throw UserNotFoundException. // The \$identifier argument may not actually be a username: // it is whatever value is being returned by the getUserIdentifier() // method in your User class. throw new \\Exception('TODO: fill in loadUserByIdentifier() inside '.__FILE__); } /** * @deprecated since Symfony 5.3, loadUserByIdentifier() is used instead */ public function loadUserByUsername(\$username): UserInterface { return \$this->loadUserByIdentifier(\$username); } /** * Refreshes the user after being reloaded from the session. * * When a user is logged in, at the beginning of each request, the * User object is loaded from the session and then this method is * called. Your job is to make sure the user's data is still fresh by, * for example, re-querying for fresh User data. * * If your firewall is \"stateless: true\" (for a pure API), this * method is not called. */ public function refreshUser(UserInterface \$user): UserInterface { if (!\$user instanceof ) { throw new UnsupportedUserException(sprintf('Invalid user class \"%s\".', \$user::class)); } // Return a User object after making sure its data is \"fresh\". // Or throw a UsernameNotFoundException if the user no longer exists. throw new \\Exception('TODO: fill in refreshUser() inside '.__FILE__); } /** * Tells Symfony to use this provider for this User class. */ public function supportsClass(string \$class): bool { return ::class === \$class || is_subclass_of(\$class, ::class); } /** * Upgrades the hashed password of a user, typically for using a better hash algorithm. */ public function upgradePassword(PasswordAuthenticatedUserInterface \$user, string \$newHashedPassword): void { // TODO: when hashed passwords are in use, this method should: // 1. persist the new password in the user storage // 2. update the \$user object with \$user->setPassword(\$newHashedPassword); } } "; $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof); $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof); yield from []; } /** * @codeCoverageIgnore */ public function getTemplateName(): string { return "@Maker/security/UserProvider.tpl.php"; } /** * @codeCoverageIgnore */ public function getDebugInfo(): array { return array ( 48 => 1,); } public function getSourceContext(): Source { return new Source(" namespace ; class implements UserProviderInterface, PasswordUpgraderInterface { /** * Symfony calls this method if you use features like switch_user * or remember_me. * * If you're not using these features, you do not need to implement * this method. * * @throws UserNotFoundException if the user is not found */ public function loadUserByIdentifier(\$identifier): UserInterface { // Load a User object from your data source or throw UserNotFoundException. // The \$identifier argument may not actually be a username: // it is whatever value is being returned by the getUserIdentifier() // method in your User class. throw new \\Exception('TODO: fill in loadUserByIdentifier() inside '.__FILE__); } /** * @deprecated since Symfony 5.3, loadUserByIdentifier() is used instead */ public function loadUserByUsername(\$username): UserInterface { return \$this->loadUserByIdentifier(\$username); } /** * Refreshes the user after being reloaded from the session. * * When a user is logged in, at the beginning of each request, the * User object is loaded from the session and then this method is * called. Your job is to make sure the user's data is still fresh by, * for example, re-querying for fresh User data. * * If your firewall is \"stateless: true\" (for a pure API), this * method is not called. */ public function refreshUser(UserInterface \$user): UserInterface { if (!\$user instanceof ) { throw new UnsupportedUserException(sprintf('Invalid user class \"%s\".', \$user::class)); } // Return a User object after making sure its data is \"fresh\". // Or throw a UsernameNotFoundException if the user no longer exists. throw new \\Exception('TODO: fill in refreshUser() inside '.__FILE__); } /** * Tells Symfony to use this provider for this User class. */ public function supportsClass(string \$class): bool { return ::class === \$class || is_subclass_of(\$class, ::class); } /** * Upgrades the hashed password of a user, typically for using a better hash algorithm. */ public function upgradePassword(PasswordAuthenticatedUserInterface \$user, string \$newHashedPassword): void { // TODO: when hashed passwords are in use, this method should: // 1. persist the new password in the user storage // 2. update the \$user object with \$user->setPassword(\$newHashedPassword); } } ", "@Maker/security/UserProvider.tpl.php", "/var/www/cds-intranet/app/vendor/symfony/maker-bundle/templates/security/UserProvider.tpl.php"); } }