1.4 KiB
UPGRADE
Upgrading from 0.2 to 0.3
-
Removed the
MappedStatementandMappedVerbclasses. They are needed for Doctrine based implementations and thus have been moved to thephp-xapi/repository-doctrinepackage. Consequently, theStatementRepositoryclass has been removed too. You now have to implement theStatementRepositoryInterfaceand handleStatementclasses directly instead. -
Removed the
NotFoundExceptionin favor of the exception with the same name from thephp-xapi/exceptionpackage. -
The public API now uses
StatementIdinstances instead of strings to carry information about statement ids. This means changes to the following methods:-
StatementRepositoryInterface::findStatementById(): The$statementIdargument is now type hinted withStatementId. -
StatementRepositoryInterface::findVoidedStatementById(): The$voidedStatementIdargument is now type hinted withStatementId. -
StatementRepositoryInterface::storeStatement(): The method returns aStatementIdinstance instead of a string.
-
-
The requirements for
php-xapi/modelandphp-xapi/test-fixtureshave been bumped to^1.0to make use of their stable releases.
Upgrading from 0.1 to 0.2
The base namespace of all classes was changed from Xabbuh\XApi\Storage\Api to
XApi\Repository\Api.