prooph / proophessor-do

prooph components in action
http://getprooph.org
BSD 3-Clause "New" or "Revised" License
254 stars 65 forks source link

prooph/pdo-event-store (dev) is not compatible with prooph/event-store (dev) #116

Closed akireikin closed 7 years ago

akireikin commented 7 years ago

How to reproduce the issue

Update composer dependencies.

What happened

Everywhere in the project

Fatal error: Class Prooph\EventStore\Pdo\MySqlEventStore contains 3 abstract methods and must therefore be declared abstract or implement the remaining methods (Prooph\EventStore\ReadOnlyEventStore::fetchStreamNames, Prooph\EventStore\ReadOnlyEventStore::fetchCategoryNames, Prooph\EventStore\ReadOnlyEventStore::fetchProjectionNames) in /app/vendor/prooph/pdo-event-store/src/MySqlEventStore.php on line 42

What is wrong

It seems prooph/pdo-event-store package version doesn't compatible with prooph/event-store version.

List of installed packages

MacBook-Pro:proophessor-do akireikin$ docker run --rm -it --volume $(pwd):/app prooph/composer:7.1 show
Do not run Composer as root/super user! See https://getcomposer.org/root for details
aura/router                                    2.3.1               A web router implementation; given a URI path and a copy of $_SERVER, it will extract path-info parameter values for a spe...
beberlei/assert                                v2.7.3              Thin assertion library for input validation in business models.
container-interop/container-interop            1.1.0               Promoting the interoperability of container objects (DIC, SL, etc.)
doctrine/annotations                           v1.3.1              Docblock Annotations Parser
doctrine/cache                                 v1.6.1              Caching library offering an object-oriented API for many cache backends
doctrine/collections                           v1.4.0              Collections Abstraction library
doctrine/common                                v2.7.2              Common Library for Doctrine projects
doctrine/dbal                                  v2.5.12             Database Abstraction Layer
doctrine/inflector                             v1.1.0              Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator                          1.0.5               A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                                 v1.0.1              Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
fig/http-message-util                          1.1.2               Utility classes and constants for use with PSR-7 (psr/http-message)
filp/whoops                                    1.1.10              php error handling for cool kids
friendsofphp/php-cs-fixer                      v2.0.0              A tool to automatically fix PHP code style
guzzle/guzzle                                  v3.8.1              Guzzle is a PHP HTTP client library and framework for building RESTful web service clients
http-interop/http-middleware                   0.2.0               Common interface for HTTP middleware
malukenho/docheader                            0.1.5               A small library to check header docs
marc-mabe/php-enum                             v2.3.1              Simple and fast implementation of enumerations with native PHP 5.3 and upper
myclabs/deep-copy                              1.6.0               Create deep copies (clones) of your objects
paragonie/random_compat                        v2.0.4              PHP 5.x polyfill for random_bytes() and random_int() from PHP 7
phpdocumentor/reflection-common                1.0                 Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock              3.1.1               With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is...
phpdocumentor/type-resolver                    0.2.1               
phpspec/prophecy                               dev-patch-1 15e4b25 Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage                      4.0.5               Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator                      1.4.2               FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-text-template                      1.2.1               Simple template engine.
phpunit/php-timer                              1.0.8               Utility class for timing
phpunit/php-token-stream                       1.4.9               Wrapper around PHP's tokenizer extension.
phpunit/phpunit                                5.7.13              The PHP Unit Testing framework.
phpunit/phpunit-mock-objects                   3.4.3               Mock Object library for PHPUnit
prooph/common                                  v4.0.0              Common classes used across prooph packages
prooph/event-sourcing                          5.0.x-dev 81df9a5   PHP EventSourcing library
prooph/event-store                             7.0.x-dev 43f644d   PHP EventStore Implementation
prooph/event-store-bus-bridge                  3.0.x-dev ee8abef   Marry CQRS with Event Sourcing
prooph/pdo-event-store                         dev-master 3141da2  Prooph PDO EventStore
prooph/php-cs-fixer-config                     v0.1.1              PHP CS Fixer config for prooph components
prooph/psr7-middleware                         0.4.x-dev 874aae4   PSR-7 Middleware for prooph components
prooph/service-bus                             6.0.x-dev 20de452   PHP Enterprise Service Bus Implementation supporting CQRS and DDD
proophsoftware/prooph-cli                      v0.2.0              prooph components command line tool for rapid development
psr/http-message                               1.0.1               Common interface for HTTP messages
psr/log                                        1.0.2               Common interface for logging libraries
ramsey/uuid                                    3.5.2               Formerly rhumsaa/uuid. A PHP 5.4+ library for generating RFC 4122 version 1, 3, 4, and 5 universally unique identifiers (U...
react/promise                                  v2.5.0              A lightweight implementation of CommonJS Promises/A for PHP
roave/security-advisories                      dev-master 4112836  Prevents installation of composer packages with known security vulnerabilities: no API, simply require it
sandrokeil/interop-config                      2.0.1               Provides interfaces and a concrete implementation to create instances depending on configuration via factory classes and e...
satooshi/php-coveralls                         v1.0.1              PHP client library for Coveralls API
sebastian/code-unit-reverse-lookup             1.0.0               Looks up which function or method a line of code belongs to
sebastian/comparator                           1.2.4               Provides the functionality to compare PHP values for equality
sebastian/diff                                 1.4.1               Diff implementation
sebastian/environment                          2.0.0               Provides functionality to handle HHVM/PHP environments
sebastian/exporter                             2.0.0               Provides the functionality to export PHP variables for visualization
sebastian/global-state                         1.1.1               Snapshotting of global state
sebastian/object-enumerator                    2.0.0               Traverses array structures and object graphs to enumerate all referenced objects
sebastian/recursion-context                    2.0.0               Provides functionality to recursively process PHP variables
sebastian/resource-operations                  1.0.0               Provides a list of PHP built-in functions that operate on resources
sebastian/version                              2.0.1               Library that helps with managing the version number of Git-hosted PHP projects
symfony/config                                 v3.2.3              Symfony Config Component
symfony/console                                v3.2.3              Symfony Console Component
symfony/debug                                  v3.2.3              Symfony Debug Component
symfony/event-dispatcher                       v3.2.3              Symfony EventDispatcher Component
symfony/filesystem                             v3.2.3              Symfony Filesystem Component
symfony/finder                                 v3.2.3              Symfony Finder Component
symfony/polyfill-mbstring                      v1.3.0              Symfony polyfill for the Mbstring extension
symfony/polyfill-php54                         v1.3.0              Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
symfony/process                                v3.2.3              Symfony Process Component
symfony/stopwatch                              v3.2.3              Symfony Stopwatch Component
symfony/yaml                                   v3.2.3              Symfony Yaml Component
webmozart/assert                               1.2.0               Assertions to validate method input/output with nice error messages.
zendframework/zend-code                        3.1.0               provides facilities to generate arbitrary code using an object oriented interface
zendframework/zend-config                      2.6.0               provides a nested object property based user interface for accessing this configuration data within application code
zendframework/zend-diactoros                   1.3.10              PSR HTTP Message implementations
zendframework/zend-escaper                     2.5.2               
zendframework/zend-eventmanager                3.1.0               Trigger and listen to events within a PHP application
zendframework/zend-expressive                  1.1.1               PSR-7 Middleware Microframework based on Stratigility
zendframework/zend-expressive-aurarouter       1.0.0               Aura.Router integration for Expressive
zendframework/zend-expressive-helpers          2.2.0               Helper/Utility classes for Expressive
zendframework/zend-expressive-router           1.3.2               Router subcomponent for Expressive
zendframework/zend-expressive-template         1.0.4               Template subcomponent for Expressive
zendframework/zend-expressive-zendviewrenderer 1.2.1               zend-view PhpRenderer integration for Expressive
zendframework/zend-filter                      2.7.1               provides a set of commonly needed data filters
zendframework/zend-loader                      2.5.1               
zendframework/zend-mail                        2.7.2               provides generalized functionality to compose and send both text and MIME-compliant multipart e-mail messages
zendframework/zend-mime                        2.6.1               
zendframework/zend-servicemanager              3.2.0               
zendframework/zend-stdlib                      3.1.0               
zendframework/zend-stratigility                1.3.3               Middleware for PHP
zendframework/zend-validator                   2.8.2               provides a set of commonly needed validators
zendframework/zend-view                        2.8.1               provides a system of helpers, output filters, and variable escaping
prolic commented 7 years ago

This is the very newest Feature that's being worked on. Just add some stub methods for now. You can expect a working pdo version this weekend.

akireikin commented 7 years ago

Thank you. Finally I got it.