composer require sonata-project/user-bundle -W
Your requirements could not be resolved to an installable set of packages.
Problem 1
- sonata-project/user-bundle 2.0.0 requires sonata-project/admin-bundle 2.0.* -> found sonata-project/admin-bundle[2.0.0] but it conflicts with your root composer.json require (^4.31).
- sonata-project/user-bundle[2.1.0, ..., 2.1.1] require symfony/http-foundation >=2.1, found symfony/http-foundation[v2.1.0, ..., v2.2.11] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[2.2.0, ..., 2.2.5] require symfony/http-foundation ~2.2 -> found symfony/http-foundation[v2.2.0, ..., v2.8.52] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[3.0.0, ..., 3.3.0] require php ^5.3 || ^7.0 -> your php version (8.3.12) does not satisfy that requirement.
- sonata-project/user-bundle[3.4.0, 4.0.0, ..., 4.6.0] require php ^7.1 -> your php version (8.3.12) does not satisfy that requirement.
- sonata-project/user-bundle[3.5.0, ..., 3.6.0] require php ^5.6 || ^7.0 -> your php version (8.3.12) does not satisfy that requirement.
- sonata-project/user-bundle[4.7.0, ..., 4.9.0] require php ^7.2 -> your php version (8.3.12) does not satisfy that requirement.
- sonata-project/user-bundle[4.10.0, ..., 4.11.1] require php ^7.3 -> your php version (8.3.12) does not satisfy that requirement.
- sonata-project/user-bundle[4.12.0, ..., 4.15.0] require doctrine/persistence ^1.3 || ^2.1 -> found doctrine/persistence[1.3.0, ..., 1.3.8, 2.1.0, ..., 2.5.7] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[5.0.0, ..., 5.1.0] require doctrine/persistence ^2.1 -> found doctrine/persistence[2.1.0, ..., 2.5.7] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[5.2.0, ..., 5.5.0] require symfony/config ^4.4.11 || ^5.4 || ^6.0 -> found symfony/config[v4.4.11, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.0.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[5.6.0, ..., 5.6.3] require symfony/config ^4.4.11 || ^5.4 || ^6.2 -> found symfony/config[v4.4.11, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.2.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require.
- sonata-project/user-bundle[5.7.0, ..., 5.13.0] require symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0, ..., v5.4.40, v6.2.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require.
- Root composer.json requires sonata-project/user-bundle * -> satisfiable by sonata-project/user-bundle[2.0.0, ..., 2.2.5, 3.0.0, ..., 3.6.0, 4.0.0, ..., 4.15.0, 5.0.0, ..., 5.13.0].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require sonata-project/user-bundle:*" to figure out if any version is installable, or "composer require sonata-project/user-bundle:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
php:8.3 Symfony 7.1.5 Администратор Sonata успешно установлен. Sonata ORM будле - тоже нормально. Но пользовательский бандл... [code] composer require sonata-project/user-bundle -W
Your requirements could not be resolved to an installable set of packages.
Problem 1 - sonata-project/user-bundle 2.0.0 requires sonata-project/admin-bundle 2.0.* -> found sonata-project/admin-bundle[2.0.0] but it conflicts with your root composer.json require (^4.31). - sonata-project/user-bundle[2.1.0, ..., 2.1.1] require symfony/http-foundation >=2.1, found symfony/http-foundation[v2.1.0, ..., v2.2.11] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[2.2.0, ..., 2.2.5] require symfony/http-foundation ~2.2 -> found symfony/http-foundation[v2.2.0, ..., v2.8.52] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[3.0.0, ..., 3.3.0] require php ^5.3 || ^7.0 -> your php version (8.3.12) does not satisfy that requirement. - sonata-project/user-bundle[3.4.0, 4.0.0, ..., 4.6.0] require php ^7.1 -> your php version (8.3.12) does not satisfy that requirement. - sonata-project/user-bundle[3.5.0, ..., 3.6.0] require php ^5.6 || ^7.0 -> your php version (8.3.12) does not satisfy that requirement. - sonata-project/user-bundle[4.7.0, ..., 4.9.0] require php ^7.2 -> your php version (8.3.12) does not satisfy that requirement. - sonata-project/user-bundle[4.10.0, ..., 4.11.1] require php ^7.3 -> your php version (8.3.12) does not satisfy that requirement. - sonata-project/user-bundle[4.12.0, ..., 4.15.0] require doctrine/persistence ^1.3 || ^2.1 -> found doctrine/persistence[1.3.0, ..., 1.3.8, 2.1.0, ..., 2.5.7] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[5.0.0, ..., 5.1.0] require doctrine/persistence ^2.1 -> found doctrine/persistence[2.1.0, ..., 2.5.7] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[5.2.0, ..., 5.5.0] require symfony/config ^4.4.11 || ^5.4 || ^6.0 -> found symfony/config[v4.4.11, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.0.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[5.6.0, ..., 5.6.3] require symfony/config ^4.4.11 || ^5.4 || ^6.2 -> found symfony/config[v4.4.11, ..., v4.4.44, v5.4.0, ..., v5.4.40, v6.2.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require. - sonata-project/user-bundle[5.7.0, ..., 5.13.0] require symfony/config ^5.4 || ^6.2 -> found symfony/config[v5.4.0, ..., v5.4.40, v6.2.0, ..., v6.4.8] but these were not loaded, likely because it conflicts with another require. - Root composer.json requires sonata-project/user-bundle * -> satisfiable by sonata-project/user-bundle[2.0.0, ..., 2.2.5, 3.0.0, ..., 3.6.0, 4.0.0, ..., 4.15.0, 5.0.0, ..., 5.13.0].
You can also try re-running composer require with an explicit version constraint, e.g. "composer require sonata-project/user-bundle:*" to figure out if any version is installable, or "composer require sonata-project/user-bundle:^2.1" if you know which you need.
Installation failed, reverting ./composer.json and ./composer.lock to their original content. [/code] [b]Как исправить?[/b]
Хочу сделать регистрацию и авторизацию с помощью Sonata User Bundle - не только для админов, для всех пользователей.
Но я хочу сделать систему регистрации без электронной почты.
В модели
Я борюсь с проблемой: мне нужен Sonata Media Bundle для загрузки изображений в разные папки. Я пытаюсь создать следующую структуру изображения: если изображение имеет идентификатор 1234567, исходное изображение будет помещено в папку:...
У меня проблема с переопределением editAction администратора Sonata в Symfony 4.
Моя проблема в том, что у меня есть этот интерфейс для редактирования сообщений, как вы можете видеть, это два изображения:
Каждый раз, когда администратор меняет...