Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Security] is_granted twig helper is not registered #43560

Copy link
Copy link
Closed
@BeyerJC

Description

@BeyerJC
Issue body actions

Symfony version(s) affected: 5.3.8

Description
After composer update and updating all recipes the "is_granted" twig function is not available anymore. When accessing a page i get

Did you forget to run "composer require symfony/security-core"? Unknown function "is_granted" in "_Base/_navigation.html.twig". (500 Internal Server Error)

I have "symfony/security-bundle": "5.3.*" in my composer.json and all libs are installed in vendor/. When i debug the cache warmup, the config "templating_twig.php" does not trigger my breakpoint, other configs in the security-bundle\config do.

Login does work normally.

It worked as expected before the composer update and my application was already on 5.3.1.

How to reproduce
Not sure.

Possible Solution

Additional context

name     : symfony/security-bundle
descrip. : Provides a tight integration of the Security component into the Symfony full-stack framework
keywords :
versions : * v5.3.8
type     : symfony-bundle
license  : MIT License (MIT) (OSI approved) https://spdx.org/licenses/MIT.html#licenseText
homepage : https://symfony.com
source   : []
dist     : [zip] https://*****/symfony/security-bundle/v5.3.8/symfony-security-bundle-v5.3.8.zip b755ed5d11685ba9aaa27b060250e5a57371f37f
path     : C:\Development\***\vendor\symfony\security-bundle
names    : symfony/security-bundle
 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.