Download the PHP package th0masso/ssacc-bundle without Composer
On this page you can find all versions of the php package th0masso/ssacc-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ssacc-bundle
SSACC - Symfony Security Access Control Checker
SSACC is a Symfony bundle that list all your project's routes that do not have permission checks.
The bundle will check if certain functions are called on the first line of the controller's action.
You can learn more about how to ensure that all the routes on my Symfony app have access control with this article.
Table of contents
- Installation
- Configuration
- Usage
- Example
Installation
Configuration
You should create a config file like this one:
Those are the default values, you can change them as you wish.
You can use ssacc-config.dist.yaml
as a template.
The default config path is ./ssacc-config.yaml
, but you can change it in the next step.
Description of the options
project_path
: The path to the root of your project.controllers_path
: The path to the controllers directory.exclude_all_routes_that_start_with
: An array of strings. All routes that start with any of those strings will be excluded.exclude_full_routes
: An array of strings. All routes that match any of those strings will be excluded.security_requirement
: An array of strings. All routes functions that do not have any of those strings on the first line of the controller's action will be listed.
Usage
The only argument is the relative path to the config file you created in the previous step.
It is optional and the default value is ssacc-config.yaml
(root of your project).
Example
TODO: add the example code to this repo.
All versions of ssacc-bundle with dependencies
symfony/config Version ^6.0|^7.0
symfony/console Version ^6.0|^7.0
symfony/http-kernel Version ^6.0|^7.0
symfony/routing Version ^6.0|^7.0
symfony/yaml Version ^6.0|^7.0
symfony/dependency-injection Version ^6.0|^7.0
symfony/security-bundle Version ^6.0|^7.0