Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Class Spork\EventDispatcher\WrappedEventDispatcher contains 1 abstract method and must therefore be declared abstract or implement the remaining methods #42

Open
Gamesh opened this issue Apr 20, 2016 · 4 comments

Comments

@Gamesh
Copy link

Gamesh commented Apr 20, 2016

when running with --forks=4 i get a fatal error. I suspect spork is not compatible with some of the newer versions of symfony components.

Fatal error: Class Spork\EventDispatcher\WrappedEventDispatcher contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Symfony\Component\EventDispatcher\EventDispatcherInterface::getListenerPriority) in ..../sf/vendor/kriswallsmith/spork/src/Spork/EventDispatcher/WrappedEventDispatcher.php on line 79

Call Stack:
    0.0005     224584   1. {main}() ..../sf/bin/console:0
    0.2655    1345056   2. Symfony\Component\Console\Application->run(class Symfony\Component\Console\Input\ArgvInput, ???) ..../sf/bin/console:29
    0.3133    1432272   3. Symfony\Bundle\FrameworkBundle\Console\Application->doRun(class Symfony\Component\Console\Input\ArgvInput, class Symfony\Component\Console\Output\ConsoleOutput) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:117
    1.7341    4333360   4. Symfony\Component\Console\Application->doRun(class Symfony\Component\Console\Input\ArgvInput, class Symfony\Component\Console\Output\ConsoleOutput) ..../sf/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:80
    1.7344    4334392   5. Symfony\Component\Console\Application->doRunCommand(class Symfony\Bundle\AsseticBundle\Command\DumpCommand, class Symfony\Component\Console\Input\ArgvInput, class Symfony\Component\Console\Output\ConsoleOutput) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:186
    1.7951    4425144   6. Symfony\Component\Console\Command\Command->run(class Symfony\Component\Console\Input\ArgvInput, class Symfony\Component\Console\Output\ConsoleOutput) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:807
    1.7955    4426592   7. Symfony\Bundle\AsseticBundle\Command\DumpCommand->initialize(class Symfony\Component\Console\Input\ArgvInput, class Symfony\Component\Console\Output\ConsoleOutput) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:228
    1.8020    4435568   8. spl_autoload_call(string(44)) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:58
    1.8021    4435632   9. Symfony\Component\Debug\DebugClassLoader->loadClass(string(44)) ..../sf/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:58
    1.8065    4442592  10. require_once('..../sf/vendor/kriswallsmith/spork/src/Spork/EventDispatcher/WrappedEventDispatcher.php') ..../sf/vendor/symfony/symfony/src/Symfony/Component/Debug/DebugClassLoader.php:142

installed symfony components:

symfony/assetic-bundle               v2.8.0             Integrates Assetic into Symfony2
symfony/monolog-bundle               v2.10.0            Symfony MonologBundle
symfony/phpunit-bridge               v2.8.4             Symfony PHPUnit Bridge
symfony/polyfill-intl-icu            v1.1.1             Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring            v1.1.1             Symfony polyfill for the Mbstring extension
symfony/polyfill-php56               v1.1.1             Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70               v1.1.1             Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-util                v1.1.1             Symfony utilities for portability of PHP codes
symfony/security-acl                 v3.0.0             Symfony Security Component - ACL (Access Control List)
symfony/swiftmailer-bundle           v2.3.11            Symfony SwiftmailerBundle
symfony/symfony                      v3.0.4             The Symfony PHP framework
kriswallsmith/assetic                v1.3.2             Asset Management for PHP
kriswallsmith/spork                  v0.3               Asynchronous PHP
@sandergo90
Copy link

I already submitted a pull request for this.

#39

But still no answer..

@Gamesh
Copy link
Author

Gamesh commented Aug 12, 2016

maybe the project is not maintained and abandoned, last update was a year ago :(

@sandergo90
Copy link

Hi,

It seems indeed. I've created a fork of this repo and we are using this one in our projects for the moment.

You can use it to if you want.

"repositories": [
{
"type": "vcs",
"url": "https://github.com/sandergo90/spork.git"
}
],

and then in your require: "kriswallsmith/spork": "dev-eventdispatcher",

Cheers

@Gamesh
Copy link
Author

Gamesh commented Aug 12, 2016

@sandergo90 thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants