- Support for PHP >=7.4
- Support for Symfony 5.X
- Support for Symfony 3.X
- Dockerfiles
- gitignore for
.phpunit.result.cache
- Requirement for
doctrine/persistence
as there direct requirement in code atRepositoryAwareEntityResolver
- Test for
RepositoryAwareEntityResolver
- Readme
php:^7.1
=>php:^7.4
phpunit
setting thatphpunit
does not recognize
- Added support for PHP 8.0
- Fix deprecation notices for Symfony 4 - if method exists use
TreeBuilder->getRootNode()
instead ofTreeBuilder->root()
.
paysera_rest.normalizer.items_result
marked aspublic
- marked all services as
public
ApiManager
is now lazy-loaded and REST related request checking is moved to other services
- Removed
ApiManager::addApiByUriPattern
,ApiManager::addApiByKey
methods. Now compiler pass usesRestApiRegistry::addApiByKey
,RestApiRegistry::addApiByUriPattern
methods for registering API's. - Removed
ApiManager::getApiKeyForRequest
, nowRequestApiKeyResolver
is responsible for providing api keys. - Removed
ApiManager::getApiForRequest
. NowRequestApiResolver
is responsible for providing API's based on request. - Removed
ApiManager::isRestRequest
, insteadRestListener
uses privateRestListener::isRestRequest
method.
Made service paysera_rest.service.property_path_converter.camel_case_to_snake_case
public as it is being retrieved directly from the container.
- Dropped support for PHP 5, Symfony 2
- Now requiring Symfony components individually, rather than requiring package
symfony/symfony
- Updated PHPUnit and mockery/mockery
- Removed usage of use deprecated
Symfony\Component\Security\Core\Role\RoleHierarchyInterface
, now usingSymfony\Component\Security\Core\Role\RoleHierarchy
.
- Code style fixes
Paysera\Bundle\RestBundle\ApiManager::createErrorFromException()
- checks if exception contains status code 400 and createsApiException::InvalidRequest
error
Paysera\Bundle\RestBundle\Listener\RestListener::onKernelException()
increased listener priority to10
. Since Symfony 3.3 the priority ofExceptionListener::onKernelException
was changed to1
.
\Paysera\Bundle\RestBundle\RestApi::getValidationGroups()
no longer returnsnull
if\Paysera\Bundle\RestBundle\RestApi::$globalValidationGroups
is empty.
- New optional bundle configuration parameter
locales
\Symfony\Component\HttpFoundation\Request::getLocale
now can return preferred locale from theAccept-Language
header, which resolves from thelocales
parameter in the bundle configuration
- Moved
Paysera\Bundle\RestBundle\Listener\RestListener::onKernelException
logging to servicePaysera\Bundle\RestBundle\Service\ExceptionLogger
Paysera\Bundle\RestBundle\RestApi
propertypropertyPathConverter
now has default value set toCamelCaseToSnakeCaseConverter
Paysera\Bundle\RestBundle\Entity\Error
all properties are now private instead of protectedPaysera\Bundle\RestBundle\Exception\ApiException
all properties are private instead of protectedPaysera\Bundle\RestBundle\Exception\ApiException
7th construct argument now isviolation
of typeViolation[]
instead ofcodes
of typestring[]
- 400 error response will no longer contain
errors
property instead iferror_properties_codes
property
Paysera\Bundle\RestBundle\Entity\Error
removederrorCodes
property and related getters/settersPaysera\Bundle\RestBundle\Entity\Error
removedtoArray
methodPaysera\Bundle\RestBundle\Exception\ApiException
removed property getter and setter ofcodes
property
_format
route attribute is no longer used to detect Request or Response format.Content-Type
orAccept
headers should be used accordingly.
- Deprecated
_format
route attribute. In future releases request format will be always taken fromContent-Type
header.
- Update factory service syntax