( ! ) Warning: Undefined variable $namespace in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 3
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
; use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Symfony\Component\Security\Core\Authorization\Voter\Voter; use Symfony\Component\Security\Core\User\UserInterface; class
( ! ) Warning: Undefined variable $class_name in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 9
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
extends Voter { protected function supports(
( ! ) Warning: Undefined variable $use_type_hints in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 11
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
$attribute, $subject): bool { // replace with your own logic // https://symfony.com/doc/current/security/voters.html return in_array($attribute, ['POST_EDIT', 'POST_VIEW']) && $subject instanceof \App\Entity\
( ! ) Warning: Undefined variable $class_name in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 16
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0

( ! ) Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 16
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
20.0012364240str_replace( $search = 'Voter', $replace = NULL, $subject = NULL ).../Voter.tpl.php:16

( ! ) Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 16
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
20.0012364240str_replace( $search = 'Voter', $replace = NULL, $subject = NULL ).../Voter.tpl.php:16
; } protected function voteOnAttribute(
( ! ) Warning: Undefined variable $use_type_hints in /work/home/ntrugeon/www/passibete/vendor/symfony/maker-bundle/src/Resources/skeleton/security/Voter.tpl.php on line 19
Call Stack
#TimeMemoryFunctionLocation
10.0011364072{main}( ).../Voter.tpl.php:0
$attribute, $subject, TokenInterface $token): bool { $user = $token->getUser(); // if the user is anonymous, do not grant access if (!$user instanceof UserInterface) { return false; } // ... (check conditions and return true to grant permission) ... switch ($attribute) { case 'POST_EDIT': // logic to determine if the user can EDIT // return true or false break; case 'POST_VIEW': // logic to determine if the user can VIEW // return true or false break; } return false; } }