From 66b8c86d72d6ed2999988a1bbf95cc838dd92503 Mon Sep 17 00:00:00 2001 From: Tomas Votruba Date: Mon, 15 Oct 2018 09:52:27 +0800 Subject: [PATCH] add CakePHP 3.7 set [closes #687] --- config/level/cakephp/cakephp37.yml | 66 ++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100644 config/level/cakephp/cakephp37.yml diff --git a/config/level/cakephp/cakephp37.yml b/config/level/cakephp/cakephp37.yml new file mode 100644 index 00000000000..86ee7ed7f40 --- /dev/null +++ b/config/level/cakephp/cakephp37.yml @@ -0,0 +1,66 @@ +# source: https://book.cakephp.org/3.next/en/appendices/3-7-migration-guide.html + +services: + Rector\Rector\MethodCall\MethodNameReplacerRector: + Cake\Form\Form: + 'errors': 'getErrors' + Cake\Validation\Validation: + cc: 'creditCard' + Cake\Filesystem\Folder: + normalizePath: 'correctSlashFor' + + Rector\Rector\Property\PropertyToMethodRector: + Cake\View\View: + request: + get: 'getRequest' + set: 'setRequest' + response: + get: 'getResponse' + set: 'setResponse' + templatePath: + get: 'getTemplatePath' + set: 'setTemplatePath' + template: + get: 'getTemplate' + set: 'setTemplate' + layout: + get: 'getLayout' + set: 'setLayout' + layoutPath: + get: 'getLayoutPath' + set: 'setLayoutPath' + autoLayout: + get: 'enableAutoLayout' + set: 'isAutoLayoutEnabled' + theme: + get: 'getTheme' + set: 'setTheme' + subDir: + get: 'getSubDir' + set: 'setSubDir' + plugin: + get: 'getPlugin' + set: 'setPlugin' + name: + get: 'getName' + set: 'setName' + elementCache: + get: 'getElementCache' + set: 'setElementCache' + helpers: + get: 'helpers' + + Rector\Rector\MethodCall\MethodCallToAnotherMethodCallWithArgumentsRector: + Cake\Database\Query: + join: ['clause', ['join']] + from: ['clause', ['from']] + + Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector: + Cake\Database\Connection: + logQueries: + set: 'enableQueryLogging' + get: 'isQueryLoggingEnabled' + Cake\ORM\Association: + className: + set: 'setClassName' + get: 'getClassName'