mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-18 22:08:00 +01:00
add method renames
This commit is contained in:
parent
44f25ea3f1
commit
e4630108ed
@ -20,7 +20,7 @@ services:
|
||||
- 'autoQuoting' # (now enableAutoQuoting()/isAutoQuotingEnabled('
|
||||
Cake\Database\Expression\FunctionExpression:
|
||||
- 'name'
|
||||
Cake\Database\Expression\QueryExpression:
|
||||
#Cake\Database\Expression\QueryExpression:
|
||||
#- 'tieWith' #() (now setConjunction()/getConjunction('
|
||||
Cake\Database\Expression\ValuesExpression:
|
||||
- 'columns'
|
||||
@ -67,7 +67,7 @@ services:
|
||||
Cake\ORM\EagerLoadable:
|
||||
- 'config'
|
||||
#- 'setter part of canBeJoined() (now setCanBeJoined('
|
||||
Cake\ORM\EagerLoader:
|
||||
# Cake\ORM\EagerLoader:
|
||||
#- 'matching' #() (getMatching() will have to be called after setMatching() to keep the old behavio'
|
||||
#- 'autoFields' #() (now enableAutoFields()/isAutoFieldsEnabled('
|
||||
Cake\ORM\Locator\TableLocator:
|
||||
@ -125,4 +125,45 @@ services:
|
||||
- 'options'
|
||||
- 'name'
|
||||
- 'className'
|
||||
#- 'autoLayout' #() (now enableAutoLayout()/isAutoLayoutEnabled('
|
||||
#- 'autoLayout' #() (now enableAutoLayout()/isAutoLayoutEnabled('
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
Cake\Network\Request:
|
||||
param: 'getParam'
|
||||
data: 'getData'
|
||||
query: 'getQuery'
|
||||
cookie: 'getCookie'
|
||||
method: 'getMethod'
|
||||
setInput: 'withBody'
|
||||
|
||||
Cake\Network\Response:
|
||||
location: 'withLocation'
|
||||
disableCache: 'withDisabledCache'
|
||||
type: 'withType'
|
||||
charset: 'withCharset'
|
||||
cache: 'withCache'
|
||||
modified: 'withModified'
|
||||
expires: 'withExpires'
|
||||
sharable: 'withSharable'
|
||||
maxAge: 'withMaxAge'
|
||||
vary: 'withVary'
|
||||
etag: 'withEtag'
|
||||
compress: 'withCompression'
|
||||
length: 'withLength'
|
||||
mustRevalidate: 'withMustRevalidate'
|
||||
notModified: 'withNotModified'
|
||||
cookie: 'withCookie'
|
||||
file: 'withFile'
|
||||
download: 'withDownload'
|
||||
|
||||
Cake\Event\Event:
|
||||
'name': 'getName'
|
||||
'subject': 'getSubject'
|
||||
'result': 'getResult'
|
||||
'data': 'getData'
|
||||
|
||||
Cake\View\Helper\FormHelper:
|
||||
input: 'control'
|
||||
inputs: 'controls'
|
||||
allInputs: 'allControls'
|
||||
|
@ -12,7 +12,6 @@ use Rector\NodeTypeResolver\Node\Attribute;
|
||||
use Rector\Rector\AbstractRector;
|
||||
use Rector\RectorDefinition\ConfiguredCodeSample;
|
||||
use Rector\RectorDefinition\RectorDefinition;
|
||||
use SomeClass;
|
||||
|
||||
final class MethodNameReplacerRector extends AbstractRector
|
||||
{
|
||||
@ -76,7 +75,7 @@ CODE_SAMPLE
|
||||
,
|
||||
[
|
||||
'$perClassOldToNewMethods' => [
|
||||
SomeClass::class => [
|
||||
'SomeClass' => [
|
||||
'oldMethod' => 'newMethod',
|
||||
],
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user