mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge branch '1.12' into 1.13
* 1.12: [Docs] Add warning about restricting Symfony version before Sylius installation Bring back security.authentication_manager alias if needed
This commit is contained in:
commit
2c7447b2ae
4 changed files with 57 additions and 5 deletions
|
|
@ -47,6 +47,17 @@ the contents of that new file should look like the following snippet:
|
|||
|
||||
DATABASE_URL=mysql://username:password@host/my_custom_sylius_database
|
||||
|
||||
.. warning::
|
||||
Specific Sylius versions may support various Symfony versions. To make sure the correct Symfony version will be
|
||||
installed (Symfony 6.0 for example) use:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
composer config extra.symfony.require "^6.0"
|
||||
composer update
|
||||
|
||||
Otherwise, you may face the problem of having Symfony components of the wrong version installed.
|
||||
|
||||
After everything is in place, run the following command to install Sylius:
|
||||
|
||||
.. code-block:: bash
|
||||
|
|
|
|||
|
|
@ -37,6 +37,17 @@ It will create a ``MyFirstShop`` directory with a brand new Sylius application i
|
|||
Beware! The next step includes the database setup. It will set your database credentials
|
||||
(username, password, and database name) in the file with environment variables (``.env`` is the most basic one).
|
||||
|
||||
.. warning::
|
||||
Specific Sylius versions may support various Symfony versions. To make sure the correct Symfony version will be
|
||||
installed (Symfony 6.0 for example) use:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
composer config extra.symfony.require "^6.0"
|
||||
composer update
|
||||
|
||||
Otherwise, you may face the problem of having Symfony components of the wrong version installed.
|
||||
|
||||
To launch a Sylius application initial data has to be set up: an administrator account and base locale.
|
||||
Run the Sylius installation command to do that.
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Sylius package.
|
||||
*
|
||||
* (c) Paweł Jędrzejewski
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\BackwardsCompatibility;
|
||||
|
||||
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
|
||||
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
||||
|
||||
/** @internal */
|
||||
final class Symfony5AuthenticationManagerPass implements CompilerPassInterface
|
||||
{
|
||||
public function process(ContainerBuilder $container): void
|
||||
{
|
||||
if ($container->has('security.authentication.manager')){
|
||||
$container->setAlias('security.authentication_manager', 'security.authentication.manager');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21,6 +21,7 @@ use Doctrine\Inflector\Rules\Substitutions;
|
|||
use Doctrine\Inflector\Rules\Transformations;
|
||||
use Doctrine\Inflector\Rules\Word;
|
||||
use Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\BackwardsCompatibility\ResolveShopUserTargetEntityPass;
|
||||
use Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\BackwardsCompatibility\Symfony5AuthenticationManagerPass;
|
||||
use Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\BackwardsCompatibility\Symfony6PrivateServicesPass;
|
||||
use Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\CircularDependencyBreakingErrorListenerPass;
|
||||
use Sylius\Bundle\CoreBundle\DependencyInjection\Compiler\IgnoreAnnotationsPass;
|
||||
|
|
@ -75,14 +76,15 @@ final class SyliusCoreBundle extends AbstractResourceBundle
|
|||
parent::build($container);
|
||||
|
||||
$container->addCompilerPass(new CircularDependencyBreakingErrorListenerPass());
|
||||
$container->addCompilerPass(new LazyCacheWarmupPass());
|
||||
$container->addCompilerPass(new RegisterTaxCalculationStrategiesPass());
|
||||
$container->addCompilerPass(new TranslatableEntityLocalePass());
|
||||
$container->addCompilerPass(new IgnoreAnnotationsPass());
|
||||
$container->addCompilerPass(new ResolveShopUserTargetEntityPass());
|
||||
$container->addCompilerPass(new RegisterUriBasedSectionResolverPass());
|
||||
$container->addCompilerPass(new LazyCacheWarmupPass());
|
||||
$container->addCompilerPass(new LiipImageFiltersPass());
|
||||
$container->addCompilerPass(new RegisterTaxCalculationStrategiesPass());
|
||||
$container->addCompilerPass(new RegisterUriBasedSectionResolverPass());
|
||||
$container->addCompilerPass(new ResolveShopUserTargetEntityPass());
|
||||
$container->addCompilerPass(new Symfony5AuthenticationManagerPass());
|
||||
$container->addCompilerPass(new Symfony6PrivateServicesPass());
|
||||
$container->addCompilerPass(new TranslatableEntityLocalePass());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue