Download the PHP package libre-informatique/sonata-sylius-user-bundle without Composer
On this page you can find all versions of the php package libre-informatique/sonata-sylius-user-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download libre-informatique/sonata-sylius-user-bundle
More information about libre-informatique/sonata-sylius-user-bundle
Files in libre-informatique/sonata-sylius-user-bundle
Package sonata-sylius-user-bundle
Short Description Symfony bundle providing a bridge between SonataAdmin and SyliusUser (an alternative to SonataUserBundle)
License LGPL-3.0
Homepage https://github.com/libre-informatique/SonataSyliusUserBundle
Informations about the package sonata-sylius-user-bundle
Sonata Sylius User Bundle
- Sonata Sylius User Bundle
- Installation
- Adding required bundles to the kernel
- Configure Doctrine extensions
- Update database schema
- Configure routes and security
- Configure Sylius User Bundle
- Installation
This is a Symfony bundle providing a bridge between SonataAdmin and SyliusUser (an alternative to SonataUserBundle).
The idea behind this bundle was to have user management in Sonata Admin without using FOSUserBundle (which was not stable enough by the time we started this project).
Sylius already had a good user management component and bundle, we just filled the gap...
Installation
We assume you're familiar with Composer, a dependency manager for PHP.
Use the following command to add the bundle to your composer.json
and download the package.
If you have Composer installed globally
Otherwise you have to download .phar file.
Adding required bundles to the kernel
You need to enable the bundle inside the kernel.
If you're not using any other Sylius bundles, you will also need to add SyliusUserBundle
and its dependencies to kernel.
Don't worry, everything was automatically installed via Composer.
Note:
Please register SyliusUserBundle
before DoctrineBundle
. This is important as it uses listeners which have to be processed first.
Configure Doctrine extensions
Configure doctrine extensions which are used by the bundle.
Update database schema
Run the following command.
Warning: This should be done only in dev environment! We recommend using Doctrine migrations, to safely update your schema.
Congratulations! The bundle is now installed and ready to be configured. :boom:
Configure routes and security
In this chapter, we assume your Sonata Admin routes are prefixed with /admin
.
Import SonataSyliusUserBundle security routes (for login, lougout an login_check):
Configure your application security (this is an example):
Configure Sylius User Bundle
SonataSyliusUserBundle provides a configuration file that you can import in your application configuration :
If you want to use your own configuration for SyliusUserBundle (classes, repositoties, templates, etc), then you will have to adapt this config.yml to your needs instead of importing it.
All versions of sonata-sylius-user-bundle with dependencies
symfony/symfony Version >=3.3
sylius/sylius Version ^1.0
blast-project/core-bundle Version self.version
blast-project/base-entities-bundle Version self.version