Releases: php-xapi/repository-api
Releases · php-xapi/repository-api
0.3.0
- 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.
- Added a
StatementRepositoryInterfacethat defines the public API of a statement repository. You can still extend the baseStatementRepositoryclass or provide your own implementation of this new interface. - The requirements for
php-xapi/modelandphp-xapi/test-fixtureshave been bumped to^1.0to make use of their stable releases.