Sylius / PluginSkeleton

Skeleton for starting Sylius plugins.
https://sylius.com/plugins/
73 stars 63 forks source link

Unable to install from scratch. Service depends on non-existent service. #299

Open AaronSoap opened 2 years ago

AaronSoap commented 2 years ago

Hi,

Currently having a problem pulling the skeleton, as per the installation instructions.

Run: composer create-project sylius/plugin-skeleton .

Output: https://pastebin.com/fpcmEgfb

Everything appears to install with no errors and such. I then quickly added a .env for database string and created schema and run fixtures.

When I visit the site or run behat tests I get the following:

The service "security.authorization_checker" has a dependency on a non-existent service "security.authentication_manager". Did you mean one of these: "security.authorization_checker", "security.authentication_utils", "security.authentication.manager", "security.authentication.guard_handler"?

Environment:

  1. PHP 7.4.26 (cli) (built: Nov 30 2021 08:21:51) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.26, Copyright (c), by Zend Technologies
  2. Composer version 2.1.14 2021-11-30 10:51:43

Is this potentially because i am using PHP7.4 and not the 7.3 specified in the composer.json? (Just a note, 7.3 drops out of support at midnight tonight)

450Oucema commented 2 years ago

Hello, I "fixed" this issue by downgrading symfony/security-bundle to 5.3.*. Sylius is not 100% compatible with Symfony 5.4