Comments (8)
I'm sorry, I got mixed up in my attempted upgrade chaos. In dev-master
, doctrine/persistence
is already allowed at 2.0
, but doctrine/common
is still a problem:
❯ composer require shapecode/cron-bundle dev-master
./composer.json has been updated
Running composer update shapecode/cron-bundle
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires shapecode/cron-bundle dev-master -> satisfiable by shapecode/cron-bundle[dev-master].
- shapecode/cron-bundle dev-master requires doctrine/common ^2.8 -> found doctrine/common[v2.8.0, ..., 2.13.x-dev] but the package is fixed to 3.1.0 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
Installation failed, reverting ./composer.json and ./composer.lock to their original content.
❯ composer why-not doctrine/common ^2.8
doctrine/orm 2.8.1 requires doctrine/common (^3.0)
...
from cron-bundle.
According to its release notes, doctrine/common
s breaking change with the 3.x release was removing sub-dependencies. In dev-master
, you're currently using the following classes from the Doctrine\Common
namespace:
-
Doctrine\Common\EventSubscriber
(provided bydoctrine/event-manager
) -
Doctrine\Common\Collections\ArrayCollection
Doctrine\Common\Collections\Collection
(provided bydoctrine/collections
) -
Doctrine\Common\Annotations\Annotation
Doctrine\Common\Annotations\AnnotationReader
Doctrine\Common\Annotations\Reader
(provided bydoctrine/annotations
) -
Doctrine\Common\Persistence\Event\LifecycleEventArgs
Doctrine\Common\Persistence\ManagerRegistry
Doctrine\Common\Persistence\ObjectManager
(provided bydoctrine/persistence
-LifecycleEventArgs
seem fine, but I think the other two were missed when upgradingdoctrine/persistence
from^1.2
to^2.0
, they're used intests/Command/CronRunCommandTest.php
.)
So overall I think it's fine to remove the dependency on doctrine/common
and replace it with the packages above.
from cron-bundle.
@lars-feyerabend Hey and thank you very much. I followed your advice and removed doctrine/common
with minimal changes :)
from cron-bundle.
@nicklog can you release 4.x brunch with fixes for symfony 5.2?
from cron-bundle.
Ich did a backport. Take a look at v4.0.4
from cron-bundle.
@nicklog need upgrade doctrine/persistence
to ^1.2|^2.0
at least.
from cron-bundle.
@Gemorroj Only for you <3 🤪
v4.0.5 is your friend.
from cron-bundle.
@nicklog thank you very much. Works for me =)
from cron-bundle.
Related Issues (20)
- Reset RunningInstances to 0 HOT 8
- maxInstances Annotation produces error HOT 3
- Foreign key constraint error upon deleting jobs
- shapecode:crone:run --no-sleep HOT 2
- Declaration of Shapecode\Bundle\CronBundle\Console\Style\CronStyle is not compatible with Symfony 5.2 HOT 1
- Remove unused method with code issue in CronJob::getInterval. HOT 2
- Shapecode\Bundle\CronBundle\Entity\CronJobResultInterface cannot be found HOT 1
- Package mtdowling/cron-expression is deprecated. HOT 1
- release with php 8 support HOT 6
- Scan can't find new cron HOT 5
- Built-in cronjobs removed HOT 1
- CronjobResultRepository::findMostRecent removed
- Cronjob Timeout HOT 1
- Problem when running more than 60 jobs HOT 1
- Release with symfony 6 support HOT 11
- v5 branch - Command running cron jobs terminates
- Symfony 6.3 HOT 5
- Update running_instances when job finishes HOT 1
- Add support doctrine/orm 3.0 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 cron-bundle.