knplabs / migrationserviceprovider Goto Github PK
View Code? Open in Web Editor NEWSimple Doctrine2 migration manager for Silex -- THIS PROJECT IS MAINTAINED BY ubermuda
Simple Doctrine2 migration manager for Silex -- THIS PROJECT IS MAINTAINED BY ubermuda
Hi!
I'm use Silex ~1.3
, which depends from Pimple v1.1.1 and I have a trouble after updating packages:
PHP Fatal error: Interface 'Pimple\ServiceProviderInterface' not found in /media/data/projects/sj-storage/vendor/knplabs/console-service-provider/Knp/Provider/ConsoleServiceProvider.php on line 14
PHP Stack trace:
PHP 1. {main}() /media/data/projects/sj-storage/app/console:0
PHP 2. spl_autoload_call() /media/data/projects/sj-storage/app/console:9
PHP 3. Composer\Autoload\ClassLoader->loadClass() /media/data/projects/sj-storage/app/console:9
PHP 4. Composer\Autoload\includeFile() /media/data/projects/sj-storage/vendor/composer/ClassLoader.php:301
PHP 5. include() /media/data/projects/sj-storage/vendor/composer/ClassLoader.php:412
migration-service-provider
requires console-service-provider
of dev-master
version. But now, dev-master
is contain 2.x version of this provider, which seems to work only with pimple 2.x.
I tried to require console-service-provider: 1.*
, but in this case, composer swearing about non-satisfied dependency (migration-service-provider requires only dev-master version).
Reference before update: KnpLabs/ConsoleServiceProvider@f3896b9
After update: KnpLabs/ConsoleServiceProvider@a37d712
I'm doing something wrong?
Hi,
It is possible for rollback a migration ?
Regards
As the title says the before handler registration should be moved from https://github.com/KnpLabs/MigrationServiceProvider/blob/master/Knp/Provider/MigrationServiceProvider.php#L30 to the boot method instead.
After adding package to my composer.json
and running composer update
I get error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for knplabs/migration-service-provider dev-master -> satisfiable by knplabs/migration-service-provider[dev-master].
- knplabs/migration-service-provider dev-master requires symfony/finder 2.1.* -> no matching package found.
After defining package as custom repository (zip):
{
"type": "package",
"package": {
"name": "knplabs/migration-service-provider",
"version": "dev-master",
"dist": {
"url": "https://github.com/KnpLabs/MigrationServiceProvider/archive/master.zip",
"type": "zip"
}
}
}
and registering providers (console too), I get error: Fatal error: Class 'Knp\Provider\MigrationServiceProvider' not found in D:\Dev\IntranetApps\Rekrutacje\app\services.php on line 18
.
Then I've added:
"autoload": {
"psr-0": {
"": "src/",
"Knp\\": "vendor/knplabs/migration-service-provider/"
}
},
And now it works. BUT we all now it should NOT be that way ;-)
You must implements the new ServiceProviderInterface::boot
https://github.com/fabpot/Silex/blob/master/src/Silex/ServiceProviderInterface.php
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.