Comments (3)
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.
@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.
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)
- Default values for options HOT 4
- Alias support HOT 3
- PHP Deprecated: Non-static method HOT 6
- Single Command Applications HOT 4
- PSR-11? HOT 2
- Default parameters for hyphen variables HOT 4
- Question: injecting Symfony\Component\Console\Style\SymfonyStyle ? HOT 2
- single command applications with arguments HOT 4
- Get helper from classes autowired by PHP-DI HOT 1
- Allow to disable `bindTo`. HOT 1
- Cannot set a default value when using InputOption::VALUE_NONE mode HOT 5
- Possible regression: loss of default option values via reflection HOT 2
- Still alive? HOT 1
- Update symfony/console dependency HOT 1
- mnapoli/silly issues with Laravel HOT 2
- Expressions written with HEREDOC/NOWDOC format oddly
- Feature: Specifying a value of an option as a space/comma delimited array HOT 2
- Using ArrayInput instead of StringInput breaks sub-command arguments
- Missing Symfony 7 support HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silly.