Giter Site home page Giter Site logo

Comments (3)

mnapoli avatar mnapoli commented on May 22, 2024

Hi! I'm not sure this is really a bug, for me it works well:

$ composer require mnapoli/silly-php-di "php-di/php-di:^5"
Using version ^1.1 for mnapoli/silly-php-di
./composer.json has been created
Loading composer repositories with package information
Updating dependencies (including require-dev)
    Prefetch start: total: 11
    1/11:    https://codeload.github.com/mnapoli/silly-php-di/legacy.zip/ffcfd38f20ddf43db09f1fda25faa895116c4d31
    2/11:    https://codeload.github.com/symfony/polyfill-mbstring/legacy.zip/f29dca382a6485c3cbe6379f0c61230167681937
    3/11:    https://codeload.github.com/symfony/debug/legacy.zip/e9c50482841ef696e8fa1470d950a79c8921f45d
    4/11:    https://codeload.github.com/symfony/console/legacy.zip/70d2a29b2911cbdc91a7e268046c395278238b2e
    Finished: success:4, skipped:7, failure:0, total: 11
Package operations: 11 installs, 0 updates, 0 removals
  - Installing php-di/phpdoc-reader (2.0.1) Loading from cache
  - Installing psr/container (1.0.0) Loading from cache
  - Installing container-interop/container-interop (1.2.0) Loading from cache
  - Installing php-di/invoker (1.3.3) Loading from cache
  - Installing php-di/php-di (5.4.3) Loading from cache
  - Installing psr/log (1.0.2) Loading from cache
  - Installing symfony/debug (v3.3.2) Loading from cache
  - Installing symfony/polyfill-mbstring (v1.4.0) Loading from cache
  - Installing symfony/console (v3.3.2) Loading from cache
  - Installing mnapoli/silly (1.5.1) Loading from cache
  - Installing mnapoli/silly-php-di (1.1.0) Loading from cache
php-di/php-di suggests installing doctrine/cache (Install it if you want to use the cache (version ~1.4))
php-di/php-di suggests installing doctrine/annotations (Install it if you want to use annotations (version ~1.2))
php-di/php-di suggests installing ocramius/proxy-manager (Install it if you want to use lazy injection (version ~1.0 or ~2.0))
symfony/console suggests installing symfony/event-dispatcher ()
symfony/console suggests installing symfony/filesystem ()
symfony/console suggests installing symfony/process ()
Writing lock file
Generating autoload files

I'm suspecting that requiring PHP-DI 5 without updating the dependencies at the same time causes the conflicts (i.e. what's in composer.lock).

Could you try again with --update-with-dependencies:

$ composer require "php-di/php-di:^5" --update-with-dependencies

from silly.

elazar avatar elazar commented on May 22, 2024

@mnapoli Thanks for the reply. The issue was apparently that I was also explicitly including this in the require section of my composer.json file:

"mnapoli/silly": "^1.6",

Once I removed that, mnapoli/silly-php-di pulled in mnapoli/silly, which was downgraded to 1.5.1, and that also downgraded php-di/invoker to 1.3.3. This removed the issue of the php-di/invoker version conflict blocking the installation of php-di/php-di 5.

All that said, I would like to see this repository support use of php-di/php-di 6 as well.

from silly.

mnapoli avatar mnapoli commented on May 22, 2024

This package uses PSR-11 so it is compatible with PHP-DI 6 (which is compliant with PSR-11).

If you want https://github.com/mnapoli/silly-php-di/ to be compatible then I think it's a matter of updating those lines https://github.com/mnapoli/silly-php-di/blob/master/composer.json#L17-L18

Feel free to open a pull request in https://github.com/mnapoli/silly-php-di, I'll close this issue in the meantime because the problem is solved.

from silly.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.