Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 9, 2024 via composer

symfony/security-acl v3.3.3

Symfony Security Component - ACL (Access Control List)
Package summary
Share
0
issues
1
license
8
MIT
Package created
18 Sep 2013
Version published
23 May 2023
Maintainers
1
Total deps
8
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
psr/container@2.0.2
psr/event-dispatcher@1.0.0
symfony/deprecation-contracts@v3.5.0
symfony/event-dispatcher-contracts@v3.5.0
symfony/password-hasher@v7.0.7
symfony/security-acl@v3.3.3
symfony/security-core@v7.0.7
symfony/service-contracts@v3.5.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of symfony/security-acl 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
symfony/security-corev7.0.7-MIT
prod dev

Visualizations

Frequently Asked Questions

What does symfony/security-acl do?

The Symfony Security Component - ACL (Access Control List), also known as symfony/security-acl, provides infrastructure for complex authorization systems. This powerful tool makes it possible to easily segregate the actual authorization logic, empowering you to control access to resources based on a user's privileges in a highly sophisticated way. The component finds its inspiration in the Java Spring framework, ensuring it can handle robust security requirements.

How do you use symfony/security-acl?

To use the symfony/security-acl, you begin by installing the component. It can be added to your project using the composer. Navigate to your project root in your command-line interface and run this command:

composer require symfony/security-acl

After the package has been installed, you can use it in your PHP code. The following is just a simple demonstration:

use Symfony\Component\Security\Acl\Permission\MaskBuilder;
use Symfony\Component\Security\Acl\Domain\UserSecurityIdentity;
use Symfony\Component\Security\Acl\Domain\ObjectIdentity;

// creating the ACL
$aclProvider = $this->get('security.acl.provider');
$objectIdentity = ObjectIdentity::fromDomainObject($domainObject);
$acl = $aclProvider->createAcl($objectIdentity);

// retrieving the security identity of the currently logged-in user
$securityIdentity = UserSecurityIdentity::fromAccount($user);
    
// grant owner access
$acl->insertObjectAce($securityIdentity, MaskBuilder::MASK_OWNER);
$aclProvider->updateAcl($acl);

Please note that you need to replace $this->get('security.acl.provider') and $user with your own actual service container and user object.

Where are the symfony/security-acl docs?

The comprehensive documentation for the symfony/security-acl component is available at the following location. This online guide provides a more in-depth look at how to utilize this flexible and robust security component effectively:

Symfony Security Component - ACL Documentation