Skip to content
This repository was archived by the owner on Nov 15, 2018. It is now read-only.

Additional service options #54

@akomm

Description

@akomm

I want to also add public: false property to all Voters.
I have the following entry:

dunglas_action:
  directories:
    - '../src/AppBundle/Security/Voter'
  tags:
    Symfony\Component\Security\Core\Authorization\Voter\VoterInterface:
      - 'security.voter'

I would not like to define all the Voter services, just because I want them all to be private.
Do you think a config key for options (excluding autowire) would be a good solution for this?

dunglas_action:
  options:
    # or by directory?
    Symfony\Component\Security\Core\Authorization\Voter\VoterInterface:
      public: false

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions