Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved security metadata conflict for method #193

Open
smilesrg opened this issue Dec 2, 2015 · 0 comments
Open

Unresolved security metadata conflict for method #193

smilesrg opened this issue Dec 2, 2015 · 0 comments

Comments

@smilesrg
Copy link

smilesrg commented Dec 2, 2015

RuntimeException: Unresolved security metadata conflict for method "Trim\Bundle\AnalyticsBundle\Controller\OverviewController::trafficByCountryMapAction" in "/home/sergey/public_html/trim/src/Trim/Bundle/TrimBundle/Controller/OverviewController.php". Please copy the respective annotations, and add @SatisfiesParentSecurityPolicy to the child method.

My parent method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

My child method is:

    /**
     * @param Request $request
     *
     * @return Response
     *
     * @Config\Route("/all_clicks_by_country_map", name="beta_all_clicks_by_country_map")
     * @Security\Secure(roles="ROLE_USER")
     * @Security\SatisfiesParentSecurityPolicy
     * @Config\Method({"GET"})
     * @Config\Template ("TrimBundle:_v2/Overview:map_block_part.html.twig")
     */
    public function trafficByCountryMapAction(Request $request)
    {

Library version: "jms/security-extra-bundle": "1.5.*@dev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant