Can't install composer doctrine conflict
bellu opened this issue · comments
I'm trying to install the package using Symfony 4.
But after composer update, i got conflicts (i'm working with a fresh installation using the web app skeleton 4.4).
Loading composer repositories with package information
Restricting packages listed in "symfony/symfony" to "4.4.*"
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires doctrine/orm ^2.9 -> satisfiable by doctrine/orm[2.9.0, ..., 2.10.x-dev].
- Conclusion: don't install aimeos/aimeos-symfony[2021.04.2] | install one of doctrine/orm[2.9.1], doctrine/persistence[v1.1.0, ..., 1.2.x-dev] (conflict analysis result)
- doctrine/persistence 2.2.x-dev conflicts with doctrine/persistence 2.2.x-dev.
- doctrine/persistence 2.2.x-dev conflicts with doctrine/common 2.9.x-dev.
- doctrine/persistence 2.2.x-dev conflicts with doctrine/common 2.8.x-dev.
- You can only install one version of a package, so only one of these can be installed: doctrine/persistence[v1.0.0, ..., 1.4.x-dev, 2.0.0, ..., 2.3.x-dev].
- Conclusion: install one of doctrine/orm[2.9.1], doctrine/persistence[2.2.x-dev, 2.3.x-dev] (conflict analysis result)
- Conclusion: don't install doctrine/persistence 2.3.x-dev (conflict analysis result)
- Conclusion: don't install doctrine/orm 2.9.1 (conflict analysis result)
- doctrine/common[2.13.0, ..., 2.13.x-dev] require doctrine/persistence ^1.3.3 -> satisfiable by doctrine/persistence[1.3.3, ..., 1.4.x-dev].
- doctrine/common[v2.10.0, ..., 2.12.x-dev] require doctrine/persistence ^1.1 -> satisfiable by doctrine/persistence[v1.1.0, ..., 1.4.x-dev].
- Conclusion: don't install aimeos/aimeos-symfony[2021.04.1] | install one of doctrine/orm[2.9.1], doctrine/persistence[v1.1.0, ..., 1.2.x-dev] (conflict analysis result)
- aimeos/aimeos-symfony 2021.04.x-dev requires doctrine/common ^2.8 -> satisfiable by doctrine/common[v2.8.0, ..., 2.13.x-dev].
- Root composer.json requires aimeos/aimeos-symfony ~2021.04 -> satisfiable by aimeos/aimeos-symfony[2021.04.1, 2021.04.2, 2021.04.x-dev].
Symfony 4.4 LTS changed the requirement for doctrine/common from ^2.9 to ^3.1. The Aimeos package reflects that in the new 2021.04.3 release. Can you try again?
I've added "doctrine/common": "^3.1", "aimeos/aimeos-symfony": "~2021.04.3" in my composer.json.
The installation works now, but i got:
Argument 3 passed to FOS\UserBundle\Doctrine\UserManager::__construct() must be an instance of Doctrine\Common\Persistence\ObjectManager, instance of ContainerD9T9q3d\EntityManager_9a5be93 given, called in /var/www/html/pineider_symfony/var/cache/dev/ContainerD9T9q3d/srcApp_KernelDevDebugContainer.php on line 1447
Did you try to delete the ./var/cache/
directory?
Yes, i've already tried; but the error appear again.
It's likely that this can be only fixed in FOSUser bundle :-/
Can you show the current state of your composer.json
file?
This is my current composer.json
:
{
"type": "project",
"license": "proprietary",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"php": ">=7.1.3",
"ext-ctype": "",
"ext-iconv": "",
"composer/package-versions-deprecated": "1.11.99.2",
"doctrine/annotations": "^1.0",
"doctrine/doctrine-bundle": "^2.4",
"doctrine/doctrine-migrations-bundle": "^3.1",
"doctrine/orm": "^2.9",
"doctrine/common": "^3.1",
"phpdocumentor/reflection-docblock": "^5.2",
"sensio/framework-extra-bundle": "^5.1",
"symfony/asset": "4.4.",
"symfony/console": "4.4.",
"symfony/dotenv": "4.4.",
"symfony/expression-language": "4.4.",
"symfony/flex": "^1.3.1",
"symfony/form": "4.4.",
"symfony/framework-bundle": "4.4.",
"symfony/http-client": "4.4.",
"symfony/intl": "4.4.",
"symfony/mailer": "4.4.",
"symfony/monolog-bundle": "^3.1",
"symfony/process": "4.4.",
"symfony/property-access": "4.4.",
"symfony/property-info": "4.4.",
"symfony/proxy-manager-bridge": "4.4.",
"symfony/security-bundle": "4.4.",
"symfony/serializer": "4.4.",
"symfony/translation": "4.4.",
"symfony/twig-bundle": "^4.4",
"symfony/validator": "4.4.",
"symfony/web-link": "4.4.",
"symfony/yaml": "4.4.",
"twig/extra-bundle": "^2.12|^3.0",
"twig/twig": "^2.12|^3.0",
"aimeos/aimeos-symfony": "~2021.04.3"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"symfony/browser-kit": "^4.4",
"symfony/css-selector": "^4.4",
"symfony/debug-bundle": "^4.4",
"symfony/maker-bundle": "^1.0",
"symfony/phpunit-bridge": "^5.3",
"symfony/stopwatch": "^4.4",
"symfony/var-dumper": "^4.4",
"symfony/web-profiler-bundle": "^4.4"
},
"config": {
"preferred-install": {
"": "dist"
},
"sort-packages": true
},
"autoload": {
"psr-4": {
"App\": "src/"
}
},
"autoload-dev": {
"psr-4": {
"App\Tests\": "tests/"
}
},
"replace": {
"paragonie/random_compat": "2.",
"symfony/polyfill-ctype": "",
"symfony/polyfill-iconv": "",
"symfony/polyfill-php71": "",
"symfony/polyfill-php70": "",
"symfony/polyfill-php56": ""
},
"scripts": {
"auto-scripts": {
"cache:clear": "symfony-cmd",
"assets:install %PUBLIC_DIR%": "symfony-cmd"
},
"post-install-cmd": [
"Aimeos\ShopBundle\Composer\ScriptHandler::installBundle",
"Aimeos\ShopBundle\Composer\ScriptHandler::setupDatabase",
"@auto-scripts"
],
"post-update-cmd": [
"Aimeos\ShopBundle\Composer\ScriptHandler::installBundle",
"Aimeos\ShopBundle\Composer\ScriptHandler::setupDatabase",
"@auto-scripts"
]
},
"conflict": {
"symfony/symfony": ""
},
"extra": {
"symfony": {
"allow-contrib": false,
"require": "4.4."
}
}
}
After fixing the markup of your composer.json
file (adding back missing *
and escaping backslashes) composer install
runs successfully:
$ composer show
aimeos/ai-admin-jqadm 2021.04.8 Aimeos Vue.js+Bootstrap admin interface
aimeos/ai-admin-jsonadm 2021.04.2 Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html 2021.04.11 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi 2021.04.2 Aimeos JSON API extension
aimeos/ai-controller-frontend 2021.04.3 Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs 2021.04.5 Aimeos ai-controller-jobs extension
aimeos/ai-fosuser 2021.04.2 Aimeos ai-fosuser extension
aimeos/ai-gettext 2021.04.1 Aimeos Gettext extension
aimeos/ai-monolog 2021.04.1 Monolog adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer 2021.04.1 SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-symfony 2021.04.1 Symfony 2 adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-twig 2021.04.1 Twig template engine adapter for Aimeos e-commerce components
aimeos/aimeos-core 2021.04.7 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-symfony 2021.04.3 Professional, full-featured and high performance Symfony e-commerce bundle for online shops and complex B2...
aimeos/map 2.3.0 Easy and elegant handling of PHP arrays as array-like map objects similar to jQuery and Laravel Collections
composer/installers v1.11.0 A multi-framework Composer library installer
composer/package-versions-deprecated 1.11.99.2 Composer plugin that provides efficient querying for installed package versions (no runtime IO)
doctrine/annotations 1.13.1 Docblock Annotations Parser
doctrine/cache 2.0.3 PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as ...
doctrine/collections 1.6.7 PHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
doctrine/common 3.1.2 PHP Doctrine Common project is a library that provides additional functionality that other Doctrine projec...
doctrine/dbal 2.13.x-dev 2f286f4 Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and ma...
doctrine/deprecations v0.5.3 A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all depr...
doctrine/doctrine-bundle 2.4.2 Symfony DoctrineBundle
doctrine/doctrine-migrations-bundle 3.1.1 Symfony DoctrineMigrationsBundle
doctrine/event-manager 1.1.1 The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrin...
doctrine/inflector 2.0.3 PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lower...
doctrine/instantiator 1.4.0 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer 1.2.1 PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
doctrine/migrations 3.1.3 PHP Doctrine Migrations project offer additional functionality on top of the database abstraction layer (D...
doctrine/orm 2.9.2 Object-Relational-Mapper for PHP
doctrine/persistence 2.2.1 The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctri...
doctrine/sql-formatter 1.1.1 a PHP SQL highlighting library
egulias/email-validator 3.1.1 A library for validating emails against several RFCs
friendsofphp/proxy-manager-lts v1.0.5 Adding support for a wider range of PHP versions to ocramius/proxy-manager
laminas/laminas-code 3.4.1 Extensions to the PHP Reflection API, static code scanning, and code generation
laminas/laminas-eventmanager 3.3.1 Trigger and listen to events within a PHP application
laminas/laminas-zendframework-bridge 1.2.0 Alias legacy ZF class names to Laminas Project equivalents.
monolog/monolog 1.26.1 Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy 1.10.2 Create deep copies (clones) of your objects
nikic/php-parser v4.10.5 A PHP parser written in PHP
nyholm/psr7 1.4.0 A fast PHP7 implementation of PSR-7
phar-io/manifest 2.0.1 Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version 3.1.0 Library for handling version information and constraints
php-http/message-factory v1.0.2 Factory interfaces for PSR-7 HTTP Message
phpdocumentor/reflection-common 2.2.0 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock 5.2.2 With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve inf...
phpdocumentor/type-resolver 1.4.0 A PSR-5 based resolver of Class names, Types and Structural Element Names
phpspec/prophecy 1.13.0 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage 9.2.6 Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator 3.0.5 FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker 3.1.1 Invoke callables with a timeout
phpunit/php-text-template 2.0.4 Simple template engine.
phpunit/php-timer 5.0.3 Utility class for timing
phpunit/phpunit 9.5.5 The PHP Unit Testing framework.
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.1.1 Common Container Interface (PHP FIG PSR-11)
psr/http-factory 1.0.1 Common interfaces for PSR-7 HTTP message factories
psr/http-message 1.0.1 Common interface for HTTP messages
psr/link 1.0.0 Common interfaces for HTTP links
psr/log 1.1.4 Common interface for logging libraries
sebastian/cli-parser 1.0.1 Library for parsing CLI options
sebastian/code-unit 1.0.8 Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3 Looks up which function or method a line of code belongs to
sebastian/comparator 4.0.6 Provides the functionality to compare PHP values for equality
sebastian/complexity 2.0.2 Library for calculating the complexity of PHP code units
sebastian/diff 4.0.4 Diff implementation
sebastian/environment 5.1.3 Provides functionality to handle HHVM/PHP environments
sebastian/exporter 4.0.3 Provides the functionality to export PHP variables for visualization
sebastian/global-state 5.0.3 Snapshotting of global state
sebastian/lines-of-code 1.0.3 Library for counting the lines of code in PHP source code
sebastian/object-enumerator 4.0.4 Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector 2.0.4 Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context 4.0.4 Provides functionality to recursively process PHP variables
sebastian/resource-operations 3.0.3 Provides a list of PHP built-in functions that operate on resources
sebastian/type 2.3.2 Collection of value objects that represent the types of the PHP type system
sebastian/version 3.0.2 Library that helps with managing the version number of Git-hosted PHP projects
sensio/framework-extra-bundle v5.6.1 This bundle provides a way to configure your controllers with annotations
swiftmailer/swiftmailer v6.2.7 Swiftmailer, free feature-rich PHP mailer
symfony/asset v4.4.25 Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
symfony/browser-kit v4.4.25 Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms pr...
symfony/cache v4.4.25 Provides an extended PSR-6, PSR-16 (and tags) implementation
symfony/cache-contracts v2.4.0 Generic abstractions related to caching
symfony/config v4.4.25 Helps you find, load, combine, autofill and validate configuration values of any kind
symfony/console v4.4.25 Eases the creation of beautiful and testable command line interfaces
symfony/css-selector v4.4.25 Converts CSS selectors to XPath expressions
symfony/debug v4.4.25 Provides tools to ease debugging PHP code
symfony/debug-bundle v4.4.20 Provides a tight integration of the Symfony Debug component into the Symfony full-stack framework
symfony/dependency-injection v4.4.25 Allows you to standardize and centralize the way objects are constructed in your application
symfony/deprecation-contracts v2.4.0 A generic function and convention to trigger deprecation notices
symfony/doctrine-bridge v4.4.25 Provides integration for Doctrine with various Symfony components
symfony/dom-crawler v4.4.25 Eases DOM navigation for HTML and XML documents
symfony/dotenv v4.4.25 Registers environment variables from a .env file
symfony/error-handler v4.4.25 Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher v4.4.25 Provides tools that allow your application components to communicate with each other by dispatching events...
symfony/event-dispatcher-contracts v1.1.9 Generic abstractions related to dispatching event
symfony/expression-language v4.4.25 Provides an engine that can compile and evaluate expressions
symfony/filesystem v4.4.25 Provides basic utilities for the filesystem
symfony/finder v4.4.25 Finds files and directories via an intuitive fluent interface
symfony/flex v1.13.3 Composer plugin for Symfony
symfony/form v4.4.25 Allows to easily create, process and reuse HTML forms
symfony/framework-bundle v4.4.25 Provides a tight integration between Symfony components and the Symfony full-stack framework
symfony/http-client v4.4.25 Provides powerful methods to fetch HTTP resources synchronously or asynchronously
symfony/http-client-contracts v2.4.0 Generic abstractions related to HTTP clients
symfony/http-foundation v4.4.25 Defines an object-oriented layer for the HTTP specification
symfony/http-kernel v4.4.25 Provides a structured process for converting a Request into a Response
symfony/inflector v4.4.25 Converts words between their singular and plural forms (English only)
symfony/intl v4.4.25 Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
symfony/mailer v4.4.25 Helps sending emails
symfony/maker-bundle v1.31.1 Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget...
symfony/mime v4.4.25 Allows manipulating MIME messages
symfony/monolog-bridge v4.4.25 Provides integration for Monolog with various Symfony components
symfony/monolog-bundle v3.7.0 Symfony MonologBundle
symfony/options-resolver v4.4.25 Provides an improved replacement for the array_replace PHP function
symfony/phpunit-bridge v5.3.0 Provides utilities for PHPUnit, especially user deprecation notices management
symfony/polyfill-intl-icu v1.23.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-intl-idn v1.23.0 Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer v1.23.0 Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring v1.23.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php72 v1.23.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73 v1.23.0 Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80 v1.23.0 Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81 v1.23.0 Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process v4.4.25 Executes commands in sub-processes
symfony/property-access v4.4.25 Provides functions to read and write from/to an object or array using a simple string notation
symfony/property-info v4.4.25 Extracts information about PHP class' properties using metadata of popular sources
symfony/proxy-manager-bridge v4.4.25 Provides integration for ProxyManager with various Symfony components
symfony/psr-http-message-bridge v1.3.0 PSR HTTP message bridge
symfony/routing v4.4.25 Maps an HTTP request to a set of configuration variables
symfony/security-bundle v4.4.25 Provides a tight integration of the Security component into the Symfony full-stack framework
symfony/security-core v4.4.25 Symfony Security Component - Core Library
symfony/security-csrf v4.4.25 Symfony Security Component - CSRF Library
symfony/security-guard v4.4.25 Symfony Security Component - Guard
symfony/security-http v4.4.25 Symfony Security Component - HTTP Integration
symfony/serializer v4.4.25 Handles serializing and deserializing data structures, including object graphs, into array structures or o...
symfony/service-contracts v2.4.0 Generic abstractions related to writing services
symfony/stopwatch v4.4.25 Provides a way to profile code
symfony/swiftmailer-bundle v3.5.2 Symfony SwiftmailerBundle
symfony/templating v4.4.25 Provides all the tools needed to build any kind of template system
symfony/translation v4.4.25 Provides tools to internationalize your application
symfony/translation-contracts v2.4.0 Generic abstractions related to translation
symfony/twig-bridge v4.4.25 Provides integration for Twig with various Symfony components
symfony/twig-bundle v4.4.25 Provides a tight integration of Twig into the Symfony full-stack framework
symfony/validator v4.4.25 Provides tools to validate values
symfony/var-dumper v4.4.25 Provides mechanisms for walking through any arbitrary PHP variable
symfony/var-exporter v4.4.25 Allows exporting any serializable PHP data structure to plain PHP code
symfony/web-link v4.4.25 Manages links between resources
symfony/web-profiler-bundle v4.4.25 Provides a development tool that gives detailed information about the execution of any request
symfony/yaml v4.4.25 Loads and dumps YAML files
tecnickcom/tcpdf 6.4.1 TCPDF is a PHP class for generating PDF documents and barcodes.
theseer/tokenizer 1.2.0 A small library for converting tokenized PHP source code into XML and potentially other formats
twig/extra-bundle v3.3.1 A Symfony bundle for extra Twig extensions
twig/twig v2.14.6 Twig, the flexible, fast, and secure template language for PHP
voku/portable-ascii 1.5.6 Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert 1.10.0 Assertions to validate method input/output with nice error messages.
@xabbuh sorry for the formatting.
Can you provide a link with your composer.json
?
This could be useful, also for other devs; since that the guide for Symfony 4 is not working at the moment.
Sorry, I already deleted my local project after having read #55 (comment) again. I missed that before.
It's impossible to install, I have try with all configuration described in Github, on your website ... nothing..
problem with FOS, I think you must do upgrade with Symfony 5
...
Installed successfully but it additionally requires in ./config/packages/framework.yaml
:
templating:
engines:
twig