mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-25 04:03:55 +01:00
[level] cakephp 3.6 init
This commit is contained in:
parent
28e4d85b47
commit
1f03e6c535
33
src/config/level/cakephp/cakephp36.yml
Normal file
33
src/config/level/cakephp/cakephp36.yml
Normal file
@ -0,0 +1,33 @@
|
||||
# source: https://book.cakephp.org/3.next/en/appendices/3-6-migration-guide.html
|
||||
|
||||
services:
|
||||
Rector\Rector\Dynamic\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Cake\ORM\Table':
|
||||
'association': 'getAssociation'
|
||||
'Cake\Validation\ValidationSet':
|
||||
'isPresenceRequired': 'requirePresence'
|
||||
'isEmptyAllowed': 'allowEmpty'
|
||||
|
||||
Rector\Rector\Dynamic\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'Cake\Cache\Engine\ApcEngine': 'Cake\Cache\Engine\ApcuEngine'
|
||||
'Cake\Network\Exception\BadRequestException': 'Cake\Http\Exception\BadRequestException'
|
||||
'Cake\Network\Exception\ConflictException': 'Cake\Http\Exception\ConflictException'
|
||||
'Cake\Network\Exception\ForbiddenException': 'Cake\Http\Exception\ForbiddenException'
|
||||
'Cake\Network\Exception\GoneException': 'Cake\Http\Exception\GoneException'
|
||||
'Cake\Network\Exception\HttpException': 'Cake\Http\Exception\HttpException'
|
||||
'Cake\Network\Exception\InternalErrorException': 'Cake\Http\Exception\InternalErrorException'
|
||||
'Cake\Network\Exception\InvalidCsrfTokenException': 'Cake\Http\Exception\InvalidCsrfTokenException'
|
||||
'Cake\Network\Exception\MethodNotAllowedException': 'Cake\Http\Exception\MethodNotAllowedException'
|
||||
'Cake\Network\Exception\NotAcceptableException': 'Cake\Http\Exception\NotAcceptableException'
|
||||
'Cake\Network\Exception\NotFoundException': 'Cake\Http\Exception\NotFoundException'
|
||||
'Cake\Network\Exception\NotImplementedException': 'Cake\Http\Exception\NotImplementedException'
|
||||
'Cake\Network\Exception\ServiceUnavailableException': 'Cake\Http\Exception\ServiceUnavailableException'
|
||||
'Cake\Network\Exception\UnauthorizedException': 'Cake\Http\Exception\UnauthorizedException'
|
||||
'Cake\Network\Exception\UnavailableForLegalReasonsException': 'Cake\Http\Exception\UnavailableForLegalReasonsException'
|
||||
'Cake\Network\Session': 'Cake\Http\Session'
|
||||
'Cake\Network\Session\DatabaseSession': 'Cake\Http\Session\DatabaseSession'
|
||||
'Cake\Network\Session\CacheSession': 'Cake\Http\Session\CacheSession'
|
||||
'Cake\Network\CorsBuilder': 'Cake\Http\CorsBuilder'
|
||||
'Cake\View\Widget\WidgetRegistry': 'Cake\View\Widget\WidgetLocator'
|
Loading…
x
Reference in New Issue
Block a user