mirror of
https://github.com/rectorphp/rector.git
synced 2025-04-20 23:41:57 +02:00
apply simple config on levels
This commit is contained in:
parent
31f6649908
commit
3660362e32
@ -2,273 +2,267 @@
|
||||
|
||||
services:
|
||||
Rector\Rector\Property\PropertyToMethodRector:
|
||||
$perClassPropertyToMethods:
|
||||
Cake\Network\Request:
|
||||
params:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['params']
|
||||
Cake\Network\Request:
|
||||
params:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['params']
|
||||
|
||||
data:
|
||||
get: 'getData'
|
||||
query:
|
||||
get: 'getQueryParams'
|
||||
cookies:
|
||||
get: 'getCookie'
|
||||
base:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['base']
|
||||
webroot:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['webroot']
|
||||
here:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['here']
|
||||
data:
|
||||
get: 'getData'
|
||||
query:
|
||||
get: 'getQueryParams'
|
||||
cookies:
|
||||
get: 'getCookie'
|
||||
base:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['base']
|
||||
webroot:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['webroot']
|
||||
here:
|
||||
get:
|
||||
method: 'getAttribute'
|
||||
arguments: ['here']
|
||||
|
||||
Rector\Rector\Property\PropertyNameReplacerRector:
|
||||
$perClassOldToNewProperties:
|
||||
Cake\Network\Request:
|
||||
_session: 'session'
|
||||
Cake\Network\Request:
|
||||
_session: 'session'
|
||||
|
||||
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
|
||||
$methodNamesByTypes:
|
||||
Cake\Core\InstanceConfigTrait:
|
||||
config: ~
|
||||
Cake\Core\StaticConfigTrait:
|
||||
config: ~
|
||||
dsnClassMap: ~
|
||||
Cake\Console\ConsoleOptionParser:
|
||||
command: ~
|
||||
description: ~
|
||||
epilog: ~
|
||||
Cake\Database\Connection:
|
||||
driver: ~
|
||||
schemaCollection: ~
|
||||
useSavePoints:
|
||||
set: 'enableSavePoints'
|
||||
get: 'isSavePointsEnabled'
|
||||
Cake\Database\Driver:
|
||||
autoQuoting:
|
||||
set: 'enableAutoQuoting'
|
||||
get: 'isAutoQuotingEnabled'
|
||||
Cake\Database\Expression\FunctionExpression:
|
||||
name: ~
|
||||
Cake\Database\Expression\QueryExpression:
|
||||
tieWith:
|
||||
set: 'setConjunction'
|
||||
get: 'getConjunction'
|
||||
Cake\Database\Expression\ValuesExpression:
|
||||
columns: ~
|
||||
values: ~
|
||||
query: ~
|
||||
Cake\Database\Query:
|
||||
connection: ~
|
||||
selectTypeMap: ~
|
||||
bufferResults:
|
||||
set: 'enableBufferedResults'
|
||||
get: 'isBufferedResultsEnabled'
|
||||
Cake\Database\Schema\CachedCollection:
|
||||
cacheMetadata: ~
|
||||
Cake\Database\Schema\TableSchema:
|
||||
options: ~
|
||||
temporary:
|
||||
set: 'setTemporary'
|
||||
get: 'isTemporary'
|
||||
Cake\Database\TypeMap:
|
||||
defaults: ~
|
||||
types: ~
|
||||
Cake\Database\TypeMapTrait:
|
||||
typeMap: ~
|
||||
defaultTypes: ~
|
||||
Cake\ORM\Association:
|
||||
name: ~
|
||||
cascadeCallbacks: ~
|
||||
source: ~
|
||||
target: ~
|
||||
conditions: ~
|
||||
bindingKey: ~
|
||||
foreignKey: ~
|
||||
dependent: ~
|
||||
joinType: ~
|
||||
property: ~
|
||||
strategy: ~
|
||||
finder: ~
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
targetForeignKey: ~
|
||||
saveStrategy: ~
|
||||
conditions: ~
|
||||
Cake\ORM\Association\HasMany:
|
||||
saveStrategy: ~
|
||||
foreignKey: ~
|
||||
sort: ~
|
||||
Cake\ORM\Association\HasOne:
|
||||
foreignKey: ~
|
||||
Cake\ORM\EagerLoadable:
|
||||
config: ~
|
||||
canBeJoined:
|
||||
set: 'setCanBeJoined'
|
||||
get: 'canBeJoined'
|
||||
Cake\ORM\EagerLoader:
|
||||
matching:
|
||||
set: 'setMatching'
|
||||
get: 'getMatching'
|
||||
# note: will have to be called after setMatching() to keep the old behavior
|
||||
# ref: https://github.com/cakephp/cakephp/blob/4feee5463641e05c068b4d1d31dc5ee882b4240f/src/ORM/EagerLoader.php#L330
|
||||
autoFields:
|
||||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Locator\TableLocator:
|
||||
config: ~
|
||||
Cake\ORM\Query:
|
||||
eagerLoader: ~
|
||||
hydrate:
|
||||
set: 'enableHydration'
|
||||
get: 'isHydrationEnabled'
|
||||
autoFields:
|
||||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Table:
|
||||
table: ~
|
||||
alias: ~
|
||||
registryAlias: ~
|
||||
connection: ~
|
||||
schema: ~
|
||||
primaryKey: ~
|
||||
displayField: ~
|
||||
entityClass: ~
|
||||
Cake\Mailer\Email:
|
||||
from: ~
|
||||
sender: ~
|
||||
replyTo: ~
|
||||
readReceipt: ~
|
||||
returnPath: ~
|
||||
to: ~
|
||||
cc: ~
|
||||
bcc: ~
|
||||
charset: ~
|
||||
headerCharset: ~
|
||||
emailPattern: ~
|
||||
subject: ~
|
||||
# template: have to be changed manually, non A → B change + array case
|
||||
viewRender:
|
||||
set: 'setViewRenderer'
|
||||
get: 'getViewRenderer'
|
||||
viewVars: ~
|
||||
theme: ~
|
||||
helpers: ~
|
||||
emailFormat: ~
|
||||
transport: ~
|
||||
messageId: ~
|
||||
domain: ~
|
||||
attachments: ~
|
||||
configTransport: ~
|
||||
profile: ~
|
||||
Cake\Validation\Validator:
|
||||
provider: ~
|
||||
Cake\View\StringTemplateTrait:
|
||||
templates: ~
|
||||
Cake\View\ViewBuilder:
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
plugin: ~
|
||||
helpers: ~
|
||||
theme: ~
|
||||
template: ~
|
||||
layout: ~
|
||||
options: ~
|
||||
name: ~
|
||||
className: ~
|
||||
autoLayout:
|
||||
set: 'enableAutoLayout'
|
||||
get: 'isAutoLayoutEnabled'
|
||||
Cake\Core\InstanceConfigTrait:
|
||||
config: ~
|
||||
Cake\Core\StaticConfigTrait:
|
||||
config: ~
|
||||
dsnClassMap: ~
|
||||
Cake\Console\ConsoleOptionParser:
|
||||
command: ~
|
||||
description: ~
|
||||
epilog: ~
|
||||
Cake\Database\Connection:
|
||||
driver: ~
|
||||
schemaCollection: ~
|
||||
useSavePoints:
|
||||
set: 'enableSavePoints'
|
||||
get: 'isSavePointsEnabled'
|
||||
Cake\Database\Driver:
|
||||
autoQuoting:
|
||||
set: 'enableAutoQuoting'
|
||||
get: 'isAutoQuotingEnabled'
|
||||
Cake\Database\Expression\FunctionExpression:
|
||||
name: ~
|
||||
Cake\Database\Expression\QueryExpression:
|
||||
tieWith:
|
||||
set: 'setConjunction'
|
||||
get: 'getConjunction'
|
||||
Cake\Database\Expression\ValuesExpression:
|
||||
columns: ~
|
||||
values: ~
|
||||
query: ~
|
||||
Cake\Database\Query:
|
||||
connection: ~
|
||||
selectTypeMap: ~
|
||||
bufferResults:
|
||||
set: 'enableBufferedResults'
|
||||
get: 'isBufferedResultsEnabled'
|
||||
Cake\Database\Schema\CachedCollection:
|
||||
cacheMetadata: ~
|
||||
Cake\Database\Schema\TableSchema:
|
||||
options: ~
|
||||
temporary:
|
||||
set: 'setTemporary'
|
||||
get: 'isTemporary'
|
||||
Cake\Database\TypeMap:
|
||||
defaults: ~
|
||||
types: ~
|
||||
Cake\Database\TypeMapTrait:
|
||||
typeMap: ~
|
||||
defaultTypes: ~
|
||||
Cake\ORM\Association:
|
||||
name: ~
|
||||
cascadeCallbacks: ~
|
||||
source: ~
|
||||
target: ~
|
||||
conditions: ~
|
||||
bindingKey: ~
|
||||
foreignKey: ~
|
||||
dependent: ~
|
||||
joinType: ~
|
||||
property: ~
|
||||
strategy: ~
|
||||
finder: ~
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
targetForeignKey: ~
|
||||
saveStrategy: ~
|
||||
conditions: ~
|
||||
Cake\ORM\Association\HasMany:
|
||||
saveStrategy: ~
|
||||
foreignKey: ~
|
||||
sort: ~
|
||||
Cake\ORM\Association\HasOne:
|
||||
foreignKey: ~
|
||||
Cake\ORM\EagerLoadable:
|
||||
config: ~
|
||||
canBeJoined:
|
||||
set: 'setCanBeJoined'
|
||||
get: 'canBeJoined'
|
||||
Cake\ORM\EagerLoader:
|
||||
matching:
|
||||
set: 'setMatching'
|
||||
get: 'getMatching'
|
||||
# note: will have to be called after setMatching() to keep the old behavior
|
||||
# ref: https://github.com/cakephp/cakephp/blob/4feee5463641e05c068b4d1d31dc5ee882b4240f/src/ORM/EagerLoader.php#L330
|
||||
autoFields:
|
||||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Locator\TableLocator:
|
||||
config: ~
|
||||
Cake\ORM\Query:
|
||||
eagerLoader: ~
|
||||
hydrate:
|
||||
set: 'enableHydration'
|
||||
get: 'isHydrationEnabled'
|
||||
autoFields:
|
||||
set: 'enableAutoFields'
|
||||
get: 'isAutoFieldsEnabled'
|
||||
Cake\ORM\Table:
|
||||
table: ~
|
||||
alias: ~
|
||||
registryAlias: ~
|
||||
connection: ~
|
||||
schema: ~
|
||||
primaryKey: ~
|
||||
displayField: ~
|
||||
entityClass: ~
|
||||
Cake\Mailer\Email:
|
||||
from: ~
|
||||
sender: ~
|
||||
replyTo: ~
|
||||
readReceipt: ~
|
||||
returnPath: ~
|
||||
to: ~
|
||||
cc: ~
|
||||
bcc: ~
|
||||
charset: ~
|
||||
headerCharset: ~
|
||||
emailPattern: ~
|
||||
subject: ~
|
||||
# template: have to be changed manually, non A → B change + array case
|
||||
viewRender:
|
||||
set: 'setViewRenderer'
|
||||
get: 'getViewRenderer'
|
||||
viewVars: ~
|
||||
theme: ~
|
||||
helpers: ~
|
||||
emailFormat: ~
|
||||
transport: ~
|
||||
messageId: ~
|
||||
domain: ~
|
||||
attachments: ~
|
||||
configTransport: ~
|
||||
profile: ~
|
||||
Cake\Validation\Validator:
|
||||
provider: ~
|
||||
Cake\View\StringTemplateTrait:
|
||||
templates: ~
|
||||
Cake\View\ViewBuilder:
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
plugin: ~
|
||||
helpers: ~
|
||||
theme: ~
|
||||
template: ~
|
||||
layout: ~
|
||||
options: ~
|
||||
name: ~
|
||||
className: ~
|
||||
autoLayout:
|
||||
set: 'enableAutoLayout'
|
||||
get: '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'
|
||||
# psr-7
|
||||
header: 'getHeader'
|
||||
body: 'withBody'
|
||||
statusCode: 'getStatusCode'
|
||||
protocol: 'getProtocolVersion'
|
||||
Cake\Event\Event:
|
||||
'name': 'getName'
|
||||
'subject': 'getSubject'
|
||||
'result': 'getResult'
|
||||
'data': 'getData'
|
||||
Cake\View\Helper\FormHelper:
|
||||
input: 'control'
|
||||
inputs: 'controls'
|
||||
allInputs: 'allControls'
|
||||
Cake\Mailer\Mailer:
|
||||
layout: 'setLayout'
|
||||
Cake\Routing\Route\Route:
|
||||
parse: 'parseRequest'
|
||||
Cake\Routing\Router:
|
||||
parse: 'parseRequest'
|
||||
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'
|
||||
# psr-7
|
||||
header: 'getHeader'
|
||||
body: 'withBody'
|
||||
statusCode: 'getStatusCode'
|
||||
protocol: 'getProtocolVersion'
|
||||
Cake\Event\Event:
|
||||
'name': 'getName'
|
||||
'subject': 'getSubject'
|
||||
'result': 'getResult'
|
||||
'data': 'getData'
|
||||
Cake\View\Helper\FormHelper:
|
||||
input: 'control'
|
||||
inputs: 'controls'
|
||||
allInputs: 'allControls'
|
||||
Cake\Mailer\Mailer:
|
||||
layout: 'setLayout'
|
||||
Cake\Routing\Route\Route:
|
||||
parse: 'parseRequest'
|
||||
Cake\Routing\Router:
|
||||
parse: 'parseRequest'
|
||||
|
||||
Rector\Rector\Visibility\ChangeMethodVisibilityRector:
|
||||
$methodToVisibilityByClass:
|
||||
Cake\Mailer\MailerAwareTrait:
|
||||
getMailer: 'protected'
|
||||
Cake\View\CellTrait:
|
||||
cell: 'protected'
|
||||
Cake\Mailer\MailerAwareTrait:
|
||||
getMailer: 'protected'
|
||||
Cake\View\CellTrait:
|
||||
cell: 'protected'
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
Cake\Database\Schema\Table: 'Cake\Database\Schema\TableSchema'
|
||||
Cake\Database\Schema\Table: 'Cake\Database\Schema\TableSchema'
|
||||
|
||||
Rector\Rector\MethodBody\NormalToFluentRector:
|
||||
$fluentMethodsByType:
|
||||
Cake\Network\Response:
|
||||
# https://book.cakephp.org/3.0/en/appendices/3-4-migration-guide.html#adopting-immutable-responses
|
||||
# renames are done by MethodNameReplacerRector above
|
||||
- 'withLocation'
|
||||
- 'withHeader'
|
||||
- 'withLocation'
|
||||
- 'withDisabledCache'
|
||||
- 'withType'
|
||||
- 'withCharset'
|
||||
- 'withCache'
|
||||
- 'withModified'
|
||||
- 'withExpires'
|
||||
- 'withSharable'
|
||||
- 'withMaxAge'
|
||||
- 'withVary'
|
||||
- 'withEtag'
|
||||
- 'withCompression'
|
||||
- 'withLength'
|
||||
- 'withMustRevalidate'
|
||||
- 'withNotModified'
|
||||
- 'withCookie'
|
||||
- 'withFile'
|
||||
- 'withDownload'
|
||||
Cake\Network\Response:
|
||||
# https://book.cakephp.org/3.0/en/appendices/3-4-migration-guide.html#adopting-immutable-responses
|
||||
# renames are done by MethodNameReplacerRector above
|
||||
- 'withLocation'
|
||||
- 'withHeader'
|
||||
- 'withLocation'
|
||||
- 'withDisabledCache'
|
||||
- 'withType'
|
||||
- 'withCharset'
|
||||
- 'withCache'
|
||||
- 'withModified'
|
||||
- 'withExpires'
|
||||
- 'withSharable'
|
||||
- 'withMaxAge'
|
||||
- 'withVary'
|
||||
- 'withEtag'
|
||||
- 'withCompression'
|
||||
- 'withLength'
|
||||
- 'withMustRevalidate'
|
||||
- 'withNotModified'
|
||||
- 'withCookie'
|
||||
- 'withFile'
|
||||
- 'withDownload'
|
||||
|
||||
# @todo
|
||||
# The fieldList option for Cake\ORM\Table::newEntity() and patchEntity() has been renamed to fields to be more consistent with other parts of the ORM.
|
||||
|
@ -2,86 +2,86 @@
|
||||
|
||||
services:
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
Cake\Http\Client\CookieCollection: 'Cake\Http\Cookie\CookieCollection'
|
||||
Cake\Console\ShellDispatcher: 'Cake\Console\CommandRunner'
|
||||
Cake\Database\Schema\TableSchema:
|
||||
column: 'getColumn'
|
||||
constraint: 'getConstraint'
|
||||
index: 'getIndex'
|
||||
Cake\Http\Client\CookieCollection: 'Cake\Http\Cookie\CookieCollection'
|
||||
Cake\Console\ShellDispatcher: 'Cake\Console\CommandRunner'
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
Cake\Database\Schema\TableSchema:
|
||||
column: 'getColumn'
|
||||
constraint: 'getConstraint'
|
||||
index: 'getIndex'
|
||||
|
||||
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
|
||||
$methodNamesByTypes:
|
||||
Cake\Cache\Cache:
|
||||
config: ~
|
||||
registry: ~
|
||||
Cake\Console\Shell:
|
||||
io: ~
|
||||
Cake\Console\ConsoleIo:
|
||||
outputAs: ~
|
||||
Cake\Console\ConsoleOutput:
|
||||
outputAs: ~
|
||||
Cake\Database\Connection:
|
||||
logger: ~
|
||||
Cake\Database\TypedResultInterface:
|
||||
returnType: ~
|
||||
Cake\Database\TypedResultTrait:
|
||||
returnType: ~
|
||||
Cake\Database\Log\LoggingStatement:
|
||||
logger: ~
|
||||
Cake\Datasource\ModelAwareTrait:
|
||||
modelType: ~
|
||||
Cake\Database\Query:
|
||||
valueBinder:
|
||||
get: 'getValueBinder'
|
||||
set: 'valueBinder'
|
||||
Cake\Database\Schema\TableSchema:
|
||||
columnType: ~
|
||||
Cake\Datasource\QueryTrait:
|
||||
eagerLoaded:
|
||||
get: 'isEagerLoaded'
|
||||
set: 'eagerLoaded'
|
||||
Cake\Event\EventDispatcherInterface:
|
||||
eventManager: ~
|
||||
Cake\Event\EventDispatcherTrait:
|
||||
eventManager: ~
|
||||
Cake\Error\Debugger:
|
||||
outputAs:
|
||||
get: 'getOutputFormat'
|
||||
set: 'setOutputFormat'
|
||||
Cake\Http\ServerRequest:
|
||||
env:
|
||||
get: 'getEnv'
|
||||
set: 'withEnv'
|
||||
charset:
|
||||
get: 'getCharset'
|
||||
set: 'withCharset'
|
||||
Cake\I18n\I18n:
|
||||
locale: ~
|
||||
translator: ~
|
||||
defaultLocale: ~
|
||||
defaultFormatter: ~
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
sort: ~
|
||||
Cake\ORM\LocatorAwareTrait:
|
||||
tableLocator: ~
|
||||
Cake\ORM\Table:
|
||||
validator: ~
|
||||
Cake\Routing\RouteBuilder:
|
||||
extensions: ~
|
||||
routeClass: ~
|
||||
Cake\Routing\RouteCollection:
|
||||
extensions: ~
|
||||
Cake\TestSuite\TestFixture:
|
||||
schema: ~
|
||||
Cake\Utility\Security:
|
||||
salt: ~
|
||||
Cake\View\View:
|
||||
template: ~
|
||||
layout: ~
|
||||
theme: ~
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
autoLayout:
|
||||
get: 'isAutoLayoutEnabled'
|
||||
set: 'enableAutoLayout'
|
||||
Cake\Cache\Cache:
|
||||
config: ~
|
||||
registry: ~
|
||||
Cake\Console\Shell:
|
||||
io: ~
|
||||
Cake\Console\ConsoleIo:
|
||||
outputAs: ~
|
||||
Cake\Console\ConsoleOutput:
|
||||
outputAs: ~
|
||||
Cake\Database\Connection:
|
||||
logger: ~
|
||||
Cake\Database\TypedResultInterface:
|
||||
returnType: ~
|
||||
Cake\Database\TypedResultTrait:
|
||||
returnType: ~
|
||||
Cake\Database\Log\LoggingStatement:
|
||||
logger: ~
|
||||
Cake\Datasource\ModelAwareTrait:
|
||||
modelType: ~
|
||||
Cake\Database\Query:
|
||||
valueBinder:
|
||||
get: 'getValueBinder'
|
||||
set: 'valueBinder'
|
||||
Cake\Database\Schema\TableSchema:
|
||||
columnType: ~
|
||||
Cake\Datasource\QueryTrait:
|
||||
eagerLoaded:
|
||||
get: 'isEagerLoaded'
|
||||
set: 'eagerLoaded'
|
||||
Cake\Event\EventDispatcherInterface:
|
||||
eventManager: ~
|
||||
Cake\Event\EventDispatcherTrait:
|
||||
eventManager: ~
|
||||
Cake\Error\Debugger:
|
||||
outputAs:
|
||||
get: 'getOutputFormat'
|
||||
set: 'setOutputFormat'
|
||||
Cake\Http\ServerRequest:
|
||||
env:
|
||||
get: 'getEnv'
|
||||
set: 'withEnv'
|
||||
charset:
|
||||
get: 'getCharset'
|
||||
set: 'withCharset'
|
||||
Cake\I18n\I18n:
|
||||
locale: ~
|
||||
translator: ~
|
||||
defaultLocale: ~
|
||||
defaultFormatter: ~
|
||||
Cake\ORM\Association\BelongsToMany:
|
||||
sort: ~
|
||||
Cake\ORM\LocatorAwareTrait:
|
||||
tableLocator: ~
|
||||
Cake\ORM\Table:
|
||||
validator: ~
|
||||
Cake\Routing\RouteBuilder:
|
||||
extensions: ~
|
||||
routeClass: ~
|
||||
Cake\Routing\RouteCollection:
|
||||
extensions: ~
|
||||
Cake\TestSuite\TestFixture:
|
||||
schema: ~
|
||||
Cake\Utility\Security:
|
||||
salt: ~
|
||||
Cake\View\View:
|
||||
template: ~
|
||||
layout: ~
|
||||
theme: ~
|
||||
templatePath: ~
|
||||
layoutPath: ~
|
||||
autoLayout:
|
||||
get: 'isAutoLayoutEnabled'
|
||||
set: 'enableAutoLayout'
|
||||
|
@ -2,46 +2,43 @@
|
||||
|
||||
services:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Cake\ORM\Table':
|
||||
'association': 'getAssociation'
|
||||
'Cake\Validation\ValidationSet':
|
||||
'isPresenceRequired': 'requirePresence'
|
||||
'isEmptyAllowed': 'allowEmpty'
|
||||
'Cake\ORM\Table':
|
||||
'association': 'getAssociation'
|
||||
'Cake\Validation\ValidationSet':
|
||||
'isPresenceRequired': 'requirePresence'
|
||||
'isEmptyAllowed': 'allowEmpty'
|
||||
|
||||
Rector\Rector\Property\PropertyToMethodRector:
|
||||
$perClassPropertyToMethods:
|
||||
'Cake\Controller\Controller':
|
||||
'name':
|
||||
'get': 'getName'
|
||||
'set': 'setName'
|
||||
'plugin':
|
||||
'get': 'getPlugin'
|
||||
'set': 'setPlugin'
|
||||
'Cake\Form\Form':
|
||||
'validator':
|
||||
'get': 'getValidator'
|
||||
'set': 'setValidator'
|
||||
'Cake\Controller\Controller':
|
||||
'name':
|
||||
'get': 'getName'
|
||||
'set': 'setName'
|
||||
'plugin':
|
||||
'get': 'getPlugin'
|
||||
'set': 'setPlugin'
|
||||
'Cake\Form\Form':
|
||||
'validator':
|
||||
'get': 'getValidator'
|
||||
'set': 'setValidator'
|
||||
|
||||
Rector\Rector\Class_\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'
|
||||
'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'
|
||||
|
@ -1,17 +1,15 @@
|
||||
services:
|
||||
Rector\Rector\Typehint\ParentTypehintedArgumentRector:
|
||||
$typehintForArgumentByMethodAndClass:
|
||||
'Doctrine\ORM\Mapping\ClassMetadataFactory':
|
||||
'setEntityManager':
|
||||
'em': 'Doctrine\ORM\EntityManagerInterface'
|
||||
'Doctrine\ORM\Tools\DebugUnitOfWorkListener':
|
||||
'dumpIdentityMap':
|
||||
'em': 'Doctrine\ORM\EntityManagerInterface'
|
||||
'Doctrine\ORM\Mapping\ClassMetadataFactory':
|
||||
'setEntityManager':
|
||||
'em': 'Doctrine\ORM\EntityManagerInterface'
|
||||
'Doctrine\ORM\Tools\DebugUnitOfWorkListener':
|
||||
'dumpIdentityMap':
|
||||
'em': 'Doctrine\ORM\EntityManagerInterface'
|
||||
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister'
|
||||
method: 'getSelectJoinColumnSQL'
|
||||
position: 4
|
||||
-
|
||||
class: 'Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister'
|
||||
method: 'getSelectJoinColumnSQL'
|
||||
position: 4
|
||||
|
||||
|
@ -13,10 +13,8 @@ services:
|
||||
Rector\Rector\MethodBody\FluentReplaceRector: ~
|
||||
|
||||
Rector\Rector\Function_\FunctionToMethodCallRector:
|
||||
$functionToMethodCall:
|
||||
'GuzzleHttp\json_decode': ['GuzzleHttp\Utils', 'jsonDecode']
|
||||
'GuzzleHttp\get_path': ['GuzzleHttp\Utils': 'getPath']
|
||||
'GuzzleHttp\json_decode': ['GuzzleHttp\Utils', 'jsonDecode']
|
||||
'GuzzleHttp\get_path': ['GuzzleHttp\Utils': 'getPath']
|
||||
Rector\Rector\StaticCall\StaticCallToFunctionRector:
|
||||
$staticCallToFunction:
|
||||
'GuzzleHttp\Utils::setPath': 'GuzzleHttp\set_path'
|
||||
'GuzzleHttp\Pool::batch': 'GuzzleHttp\Pool\batch'
|
||||
'GuzzleHttp\Utils::setPath': 'GuzzleHttp\set_path'
|
||||
'GuzzleHttp\Pool::batch': 'GuzzleHttp\Pool\batch'
|
||||
|
@ -7,19 +7,16 @@ services:
|
||||
Rector\PhpParser\Rector\UseWithAliasRector: ~
|
||||
|
||||
Rector\Rector\Property\PropertyNameReplacerRector:
|
||||
$perClassOldToNewProperties:
|
||||
'PhpParser\Node\Stmt\Class_':
|
||||
'type': 'flags'
|
||||
'PhpParser\Node\Stmt\ClassMethod':
|
||||
'type': 'flags'
|
||||
'PhpParser\Node\Stmt\Property':
|
||||
'type': 'flags'
|
||||
'PhpParser\Node\Stmt\Class_':
|
||||
'type': 'flags'
|
||||
'PhpParser\Node\Stmt\ClassMethod':
|
||||
'type': 'flags'
|
||||
'PhpParser\Node\Stmt\Property':
|
||||
'type': 'flags'
|
||||
|
||||
Rector\Rector\Constant\ClassConstantReplacerRector:
|
||||
$oldToNewConstantsByClass:
|
||||
'PhpParser\Node\Stmt\Class_':
|
||||
'VISIBILITY_MODIFER_MASK': 'VISIBILITY_MODIFIER_MASK'
|
||||
'PhpParser\Node\Stmt\Class_':
|
||||
'VISIBILITY_MODIFER_MASK': 'VISIBILITY_MODIFIER_MASK'
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'PhpParser\BuilderAbstract': 'PhpParser\Builder'
|
||||
'PhpParser\BuilderAbstract': 'PhpParser\Builder'
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'PHP_CodeSniffer_Sniffs_Sniff': 'PHP_CodeSniffer\Sniffs\Sniff'
|
||||
'PHP_CodeSniffer_File': 'PHP_CodeSniffer\Files\File'
|
||||
'PHP_CodeSniffer_Tokens': 'PHP_CodeSniffer\Util\Tokens'
|
||||
'PHP_CodeSniffer_Sniffs_Sniff': 'PHP_CodeSniffer\Sniffs\Sniff'
|
||||
'PHP_CodeSniffer_File': 'PHP_CodeSniffer\Files\File'
|
||||
'PHP_CodeSniffer_Tokens': 'PHP_CodeSniffer\Util\Tokens'
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Php\Rector\BinaryOp\IsIterableRector: ~
|
||||
Rector\Php\Rector\Name\ReservedObjectRector:
|
||||
$reservedKeywordsToReplacements:
|
||||
Object: 'BaseObject'
|
||||
Object: 'BaseObject'
|
||||
|
@ -14,7 +14,6 @@ services:
|
||||
Rector\PHPUnit\Rector\DelegateExceptionArgumentsRector: ~
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'PHPUnit\Framework\TestClass':
|
||||
'setExpectedException': 'expectedException'
|
||||
'setExpectedExceptionRegExp': 'expectedException'
|
||||
'PHPUnit\Framework\TestClass':
|
||||
'setExpectedException': 'expectedException'
|
||||
'setExpectedExceptionRegExp': 'expectedException'
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Rector\Annotation\AnnotationReplacerRector:
|
||||
$classToAnnotationMap:
|
||||
PHPUnit\Framework\TestCase:
|
||||
scenario: test
|
||||
PHPUnit\Framework\TestCase:
|
||||
scenario: 'test'
|
||||
|
@ -4,64 +4,59 @@ services:
|
||||
Rector\Sylius\Rector\Review\ReplaceCreateMethodWithoutReviewerRector: ~
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Sylius\Component\Core\Repository\OrderRepositoryInterface':
|
||||
'count': 'countPlacedOrders'
|
||||
'countByChannel': 'countFulfilledByChannel'
|
||||
'Sylius\Component\Core\Repository\OrderRepositoryInterface':
|
||||
'count': 'countPlacedOrders'
|
||||
'countByChannel': 'countFulfilledByChannel'
|
||||
|
||||
'Sylius\Component\Product\Repository\ProductVariantRepositoryInterface':
|
||||
'findByCodeAndProductCode': 'findByCodesAndProductCode'
|
||||
'Sylius\Component\Product\Repository\ProductVariantRepositoryInterface':
|
||||
'findByCodeAndProductCode': 'findByCodesAndProductCode'
|
||||
|
||||
'Sylius\Component\Core\Model\OrderInterface':
|
||||
getLastNewPayment: 'getLastPayment'
|
||||
'Sylius\Component\Core\Model\OrderInterface':
|
||||
getLastNewPayment: 'getLastPayment'
|
||||
|
||||
'Sylius\Component\Taxonomy\Model\TaxonInterface':
|
||||
'getParents ': 'getAncestors'
|
||||
'Sylius\Component\Taxonomy\Model\TaxonInterface':
|
||||
'getParents ': 'getAncestors'
|
||||
|
||||
Rector\Rector\Typehint\ParentTypehintedArgumentRector:
|
||||
$typehintForArgumentByMethodAndClass:
|
||||
'Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext':
|
||||
'__construct':
|
||||
'$cartStorage': 'Sylius\Component\Core\Storage\CartStorageInterface'
|
||||
'Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext':
|
||||
'__construct':
|
||||
'$cartStorage': 'Sylius\Component\Core\Storage\CartStorageInterface'
|
||||
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Sylius\Component\Mailer\Sender\SenderInterface'
|
||||
method: 'send'
|
||||
position: 0
|
||||
default_value: '[]'
|
||||
-
|
||||
class: 'Sylius\Component\Core\Repository\ProductRepositoryInterface'
|
||||
method: 'findOneBySlug'
|
||||
position: 2
|
||||
default_value: false
|
||||
-
|
||||
class: 'Sylius\Component\Mailer\Sender\SenderInterface'
|
||||
method: 'send'
|
||||
position: 0
|
||||
default_value: '[]'
|
||||
-
|
||||
class: 'Sylius\Component\Core\Repository\ProductRepositoryInterface'
|
||||
method: 'findOneBySlug'
|
||||
position: 2
|
||||
default_value: false
|
||||
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$returnTypehintByMethod:
|
||||
'Sylius\Component\Order\Model\OrderInterface':
|
||||
'getAdjustmentsRecursively':
|
||||
'array': 'Doctrine\Common\Collections\Collection'
|
||||
'Sylius\Component\Order\Model\OrderInterface':
|
||||
'getAdjustmentsRecursively':
|
||||
'array': 'Doctrine\Common\Collections\Collection'
|
||||
|
||||
'Sylius\Component\Order\Model\OrderItemInterface':
|
||||
'getAdjustmentsRecursively':
|
||||
'array': 'Doctrine\Common\Collections\Collection'
|
||||
'Sylius\Component\Order\Model\OrderItemInterface':
|
||||
'getAdjustmentsRecursively':
|
||||
'array': 'Doctrine\Common\Collections\Collection'
|
||||
|
||||
'Sylius\Component\Registry\PrioritizedServiceRegistryInterface':
|
||||
'all':
|
||||
'Zend\Stdlib\PriorityQueue': 'iterable'
|
||||
'Sylius\Component\Registry\PrioritizedServiceRegistryInterface':
|
||||
'all':
|
||||
'Zend\Stdlib\PriorityQueue': 'iterable'
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'DateTime': 'DateTimeInterface'
|
||||
'Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext': 'Sylius\Component\Core\Storage\CartStorageInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ShipmentEmailManager': 'Sylius\Bundle\AdminBundle\EmailManager\ShipmentEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ShipmentEmailManagerInterface': 'Sylius\Bundle\AdminBundle\EmailManager\ShipmentEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ContactEmailManager': 'Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ContactEmailManagerInterface': 'Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\OrderEmailManager': 'Sylius\Bundle\ShopBundle\EmailManager\OrderEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\OrderEmailManagerInterface': 'Sylius\Bundle\ShopBundle\EmailManager\OrderEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EventListener\UserMailerListener': 'Sylius\Bundle\ShopBundle\EventListener\UserMailerListener'
|
||||
'Sylius\Bundle\CoreBundle\Form\Type\ProductTaxonChoiceType': 'Sylius\Bundle\CoreBundle\Form\Type\Taxon\ProductTaxonAutocompleteChoiceType'
|
||||
'Sylius\Component\Order\Factory\AddToCartCommandFactoryInterface': 'Sylius\Bundle\OrderBundle\Factory\AddToCartCommandFactoryInterface'
|
||||
'Sylius\Bundle\ResourceBundle\Model\ResourceLogEntry': 'Sylius\Component\Resource\Model\ResourceLogEntry'
|
||||
'DateTime': 'DateTimeInterface'
|
||||
'Sylius\Bundle\CoreBundle\Context\SessionAndChannelBasedCartContext': 'Sylius\Component\Core\Storage\CartStorageInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ShipmentEmailManager': 'Sylius\Bundle\AdminBundle\EmailManager\ShipmentEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ShipmentEmailManagerInterface': 'Sylius\Bundle\AdminBundle\EmailManager\ShipmentEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ContactEmailManager': 'Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\ContactEmailManagerInterface': 'Sylius\Bundle\ShopBundle\EmailManager\ContactEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\OrderEmailManager': 'Sylius\Bundle\ShopBundle\EmailManager\OrderEmailManager'
|
||||
'Sylius\Bundle\CoreBundle\EmailManager\OrderEmailManagerInterface': 'Sylius\Bundle\ShopBundle\EmailManager\OrderEmailManagerInterface'
|
||||
'Sylius\Bundle\CoreBundle\EventListener\UserMailerListener': 'Sylius\Bundle\ShopBundle\EventListener\UserMailerListener'
|
||||
'Sylius\Bundle\CoreBundle\Form\Type\ProductTaxonChoiceType': 'Sylius\Bundle\CoreBundle\Form\Type\Taxon\ProductTaxonAutocompleteChoiceType'
|
||||
'Sylius\Component\Order\Factory\AddToCartCommandFactoryInterface': 'Sylius\Bundle\OrderBundle\Factory\AddToCartCommandFactoryInterface'
|
||||
'Sylius\Bundle\ResourceBundle\Model\ResourceLogEntry': 'Sylius\Component\Resource\Model\ResourceLogEntry'
|
@ -3,8 +3,7 @@
|
||||
services:
|
||||
# @todo, use this and return typehint
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$typehintForMethodByClass:
|
||||
# class
|
||||
'Sylius\Bundle\AdminApiBundle\Model\ClientManager':
|
||||
# method
|
||||
'findClientByPublicId': '?Sylius\Bundle\AdminApiBundle\Model\ClientInterface'
|
||||
# class
|
||||
'Sylius\Bundle\AdminApiBundle\Model\ClientManager':
|
||||
# method
|
||||
'findClientByPublicId': '?Sylius\Bundle\AdminApiBundle\Model\ClientInterface'
|
@ -3,8 +3,7 @@
|
||||
services:
|
||||
# @todo, use this and return typehint
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$typehintForMethodByClass:
|
||||
# class
|
||||
'Sylius\Bundle\CoreBundle\Templating\Helper\VariantResolverHelper':
|
||||
# method
|
||||
'resolveVariant': '?Sylius\Component\Product\Model\ProductVariantInterface'
|
||||
# class
|
||||
Sylius\Bundle\CoreBundle\Templating\Helper\VariantResolverHelper:
|
||||
# method
|
||||
'resolveVariant': '?Sylius\Component\Product\Model\ProductVariantInterface'
|
@ -5,10 +5,9 @@ services:
|
||||
# yaml
|
||||
# covers https://github.com/symfony/symfony/blob/3.0/UPGRADE-3.0.md#security
|
||||
Rector\YamlRector\Rector\RenameSubKeyYamlRector:
|
||||
$pathsToNewKeys:
|
||||
'security > firewalls > default > anonymous > key': 'secret'
|
||||
'security > firewalls > default > http_digest > key': 'secret'
|
||||
'security > firewalls > default > remember_me > key': 'secret'
|
||||
'security > firewalls > default > anonymous > key': 'secret'
|
||||
'security > firewalls > default > http_digest > key': 'secret'
|
||||
'security > firewalls > default > remember_me > key': 'secret'
|
||||
|
||||
# php
|
||||
Rector\Symfony\Rector\HttpKernel\GetRequestRector: ~
|
||||
@ -17,145 +16,142 @@ services:
|
||||
|
||||
# general
|
||||
Rector\Rector\Constant\ClassConstantReplacerRector:
|
||||
$oldToNewConstantsByClass:
|
||||
# form
|
||||
'Symfony\Component\Form\FormEvents':
|
||||
'PRE_BIND': 'PRE_SUBMIT'
|
||||
'BIND': 'SUBMIT'
|
||||
'POST_BIND': 'POST_SUBMIT'
|
||||
'Symfony\Component\Form\Extension\Core\DataTransformer':
|
||||
'ROUND_HALFEVEN': 'ROUND_HALF_EVEN'
|
||||
'ROUND_HALFUP': 'ROUND_HALF_UP'
|
||||
'ROUND_HALFDOWN': 'ROUND_HALF_DOWN'
|
||||
# form
|
||||
'Symfony\Component\Form\FormEvents':
|
||||
'PRE_BIND': 'PRE_SUBMIT'
|
||||
'BIND': 'SUBMIT'
|
||||
'POST_BIND': 'POST_SUBMIT'
|
||||
'Symfony\Component\Form\Extension\Core\DataTransformer':
|
||||
'ROUND_HALFEVEN': 'ROUND_HALF_EVEN'
|
||||
'ROUND_HALFUP': 'ROUND_HALF_UP'
|
||||
'ROUND_HALFDOWN': 'ROUND_HALF_DOWN'
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
# class loader
|
||||
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader':
|
||||
'registerNamespaces': 'addPrefixes'
|
||||
'registerPrefixes': 'addPrefixes'
|
||||
'registerNamespace': 'addPrefix'
|
||||
'registerPrefix': 'addPrefix'
|
||||
'getNamespaces': 'getPrefixes'
|
||||
'getNamespaceFallbacks': 'getFallbackDirs'
|
||||
'getPrefixFallbacks': 'getFallbackDirs'
|
||||
# class loader
|
||||
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader':
|
||||
'registerNamespaces': 'addPrefixes'
|
||||
'registerPrefixes': 'addPrefixes'
|
||||
'registerNamespace': 'addPrefix'
|
||||
'registerPrefix': 'addPrefix'
|
||||
'getNamespaces': 'getPrefixes'
|
||||
'getNamespaceFallbacks': 'getFallbackDirs'
|
||||
'getPrefixFallbacks': 'getFallbackDirs'
|
||||
|
||||
# form
|
||||
'Symfony\Component\Form\AbstractType':
|
||||
'getName': 'getBlockPrefix'
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\FormTypeInterface':
|
||||
'getName': 'getBlockPrefix'
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\ResolvedFormTypeInterface':
|
||||
'getName': 'getBlockPrefix'
|
||||
'Symfony\Component\Form\AbstractTypeExtension':
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\Form':
|
||||
'bind': 'submit'
|
||||
'isBound': 'isSubmitted'
|
||||
# form
|
||||
'Symfony\Component\Form\AbstractType':
|
||||
'getName': 'getBlockPrefix'
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\FormTypeInterface':
|
||||
'getName': 'getBlockPrefix'
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\ResolvedFormTypeInterface':
|
||||
'getName': 'getBlockPrefix'
|
||||
'Symfony\Component\Form\AbstractTypeExtension':
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Symfony\Component\Form\Form':
|
||||
'bind': 'submit'
|
||||
'isBound': 'isSubmitted'
|
||||
|
||||
# process
|
||||
'Symfony\Component\Process\Process':
|
||||
'setStdin': 'setInput'
|
||||
'getStdin': 'getInput'
|
||||
# process
|
||||
'Symfony\Component\Process\Process':
|
||||
'setStdin': 'setInput'
|
||||
'getStdin': 'getInput'
|
||||
|
||||
# monolog
|
||||
'Symfony\Bridge\Monolog\Logger':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
# monolog
|
||||
'Symfony\Bridge\Monolog\Logger':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
|
||||
# http kernel
|
||||
'Symfony\Component\HttpKernel\Log\LoggerInterface':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
'Symfony\Component\HttpKernel\Log\NullLogger':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
# http kernel
|
||||
'Symfony\Component\HttpKernel\Log\LoggerInterface':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
'Symfony\Component\HttpKernel\Log\NullLogger':
|
||||
'emerg': 'emergency'
|
||||
'crit': 'critical'
|
||||
'err': 'error'
|
||||
'warn': 'warning'
|
||||
|
||||
# property access
|
||||
Symfony\Component\PropertyAccess\PropertyAccess:
|
||||
'getPropertyAccessor': 'createPropertyAccessor'
|
||||
# property access
|
||||
Symfony\Component\PropertyAccess\PropertyAccess:
|
||||
'getPropertyAccessor': 'createPropertyAccessor'
|
||||
|
||||
# serialazer
|
||||
'Symfony\Component\Serializer\Exception\Exception': 'Symfony\Component\Serializer\Exception\ExceptionInterface'
|
||||
# serialazer
|
||||
'Symfony\Component\Serializer\Exception\Exception': 'Symfony\Component\Serializer\Exception\ExceptionInterface'
|
||||
|
||||
# translator
|
||||
'Symfony\Component\Translation\Dumper\FileDumper':
|
||||
'format': 'formatCatalogue'
|
||||
'Symfony\Component\Translation\Translator':
|
||||
'getMessages': 'getCatalogue'
|
||||
# translator
|
||||
'Symfony\Component\Translation\Dumper\FileDumper':
|
||||
'format': 'formatCatalogue'
|
||||
'Symfony\Component\Translation\Translator':
|
||||
'getMessages': 'getCatalogue'
|
||||
|
||||
# validator
|
||||
'Symfony\Component\Validator\ConstraintViolationInterface':
|
||||
'getMessageParameters': 'getParameters'
|
||||
'getMessagePluralization': 'getPlural'
|
||||
'Symfony\Component\Validator\ConstraintViolation':
|
||||
'getMessageParameters': 'getParameters'
|
||||
'getMessagePluralization': 'getPlural'
|
||||
# validator
|
||||
'Symfony\Component\Validator\ConstraintViolationInterface':
|
||||
'getMessageParameters': 'getParameters'
|
||||
'getMessagePluralization': 'getPlural'
|
||||
'Symfony\Component\Validator\ConstraintViolation':
|
||||
'getMessageParameters': 'getParameters'
|
||||
'getMessagePluralization': 'getPlural'
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
# class loader
|
||||
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader': 'Symfony\Component\ClassLoader\ClassLoader' # partial with method rename
|
||||
# class loader
|
||||
'Symfony\Component\ClassLoader\UniversalClassLoader\UniversalClassLoader': 'Symfony\Component\ClassLoader\ClassLoader' # partial with method rename
|
||||
|
||||
# console
|
||||
'Symfony\Component\Console\Helper\ProgressHelper': 'Symfony\Component\Console\Helper\ProgressBar'
|
||||
# console
|
||||
'Symfony\Component\Console\Helper\ProgressHelper': 'Symfony\Component\Console\Helper\ProgressBar'
|
||||
|
||||
# form
|
||||
'Symfony\Component\Form\Util\VirtualFormAwareIterator': 'Symfony\Component\Form\Util\InheritDataAwareIterator'
|
||||
'Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase': 'Symfony\Component\Form\Test\TypeTestCase'
|
||||
'Symfony\Component\Form\Tests\FormIntegrationTestCase': 'Symfony\Component\Form\Test\FormIntegrationTestCase'
|
||||
'Symfony\Component\Form\Tests\FormPerformanceTestCase': 'Symfony\Component\Form\Test\FormPerformanceTestCase'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface': 'Symfony\Component\Form\ChoiceList\ChoiceListInterface'
|
||||
'Symfony\Component\Form\Extension\Core\View\ChoiceView': 'Symfony\Component\Form\ChoiceList\View\ChoiceView'
|
||||
'Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface': 'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\LazyChoiceList': 'Symfony\Component\Form\ChoiceList\LazyChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
# form
|
||||
'Symfony\Component\Form\Util\VirtualFormAwareIterator': 'Symfony\Component\Form\Util\InheritDataAwareIterator'
|
||||
'Symfony\Component\Form\Tests\Extension\Core\Type\TypeTestCase': 'Symfony\Component\Form\Test\TypeTestCase'
|
||||
'Symfony\Component\Form\Tests\FormIntegrationTestCase': 'Symfony\Component\Form\Test\FormIntegrationTestCase'
|
||||
'Symfony\Component\Form\Tests\FormPerformanceTestCase': 'Symfony\Component\Form\Test\FormPerformanceTestCase'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface': 'Symfony\Component\Form\ChoiceList\ChoiceListInterface'
|
||||
'Symfony\Component\Form\Extension\Core\View\ChoiceView': 'Symfony\Component\Form\ChoiceList\View\ChoiceView'
|
||||
'Symfony\Component\Form\Extension\Csrf\CsrfProvider\CsrfProviderInterface': 'Symfony\Component\Security\Csrf\CsrfTokenManagerInterface'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\LazyChoiceList': 'Symfony\Component\Form\ChoiceList\LazyChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\Extension\Core\ChoiceList\SimpleChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
'Symfony\Component\Form\ChoiceList\ArrayKeyChoiceList': 'Symfony\Component\Form\ChoiceList\ArrayChoiceList'
|
||||
|
||||
# http kernel
|
||||
'Symfony\Component\HttpKernel\Debug\ErrorHandler': 'Symfony\Component\Debug\ErrorHandler'
|
||||
'Symfony\Component\HttpKernel\Debug\ExceptionHandler': 'Symfony\Component\Debug\ExceptionHandler'
|
||||
'Symfony\Component\HttpKernel\Exception\FatalErrorException': 'Symfony\Component\Debug\Exception\FatalErrorException'
|
||||
'Symfony\Component\HttpKernel\Exception\FlattenException': 'Symfony\Component\Debug\Exception\FlattenException'
|
||||
'Symfony\Component\HttpKernel\Log\LoggerInterface': 'Psr\Log\LoggerInterface' # partial with method rename
|
||||
# http kernel
|
||||
'Symfony\Component\HttpKernel\Debug\ErrorHandler': 'Symfony\Component\Debug\ErrorHandler'
|
||||
'Symfony\Component\HttpKernel\Debug\ExceptionHandler': 'Symfony\Component\Debug\ExceptionHandler'
|
||||
'Symfony\Component\HttpKernel\Exception\FatalErrorException': 'Symfony\Component\Debug\Exception\FatalErrorException'
|
||||
'Symfony\Component\HttpKernel\Exception\FlattenException': 'Symfony\Component\Debug\Exception\FlattenException'
|
||||
'Symfony\Component\HttpKernel\Log\LoggerInterface': 'Psr\Log\LoggerInterface' # partial with method rename
|
||||
|
||||
# event disptacher
|
||||
'Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass': 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass'
|
||||
'Symfony\Component\HttpKernel\Log\NullLogger': 'Psr\Log\LoggerInterface' # partial with methor rename
|
||||
# event disptacher
|
||||
'Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass': 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass'
|
||||
'Symfony\Component\HttpKernel\Log\NullLogger': 'Psr\Log\LoggerInterface' # partial with methor rename
|
||||
|
||||
# monolog
|
||||
'Symfony\Bridge\Monolog\Logger': 'Psr\Log\LoggerInterface' # partial with method rename
|
||||
# monolog
|
||||
'Symfony\Bridge\Monolog\Logger': 'Psr\Log\LoggerInterface' # partial with method rename
|
||||
|
||||
# security
|
||||
'Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter': 'Symfony\Component\Security\Core\Authorization\Voter\Voter'
|
||||
# security
|
||||
'Symfony\Component\Security\Core\Authorization\Voter\AbstractVoter': 'Symfony\Component\Security\Core\Authorization\Voter\Voter'
|
||||
|
||||
# translator
|
||||
'Symfony\Component\Translation\Translator': 'Symfony\Component\Translation\TranslatorBagInterface' # partial with class rename
|
||||
# translator
|
||||
'Symfony\Component\Translation\Translator': 'Symfony\Component\Translation\TranslatorBagInterface' # partial with class rename
|
||||
|
||||
# twig
|
||||
'Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy': 'Twig_FileExtensionEscapingStrategy'
|
||||
# twig
|
||||
'Symfony\Bundle\TwigBundle\TwigDefaultEscapingStrategy': 'Twig_FileExtensionEscapingStrategy'
|
||||
|
||||
# validator
|
||||
'Symfony\Component\Validator\Constraints\Collection\Optional': 'Symfony\Component\Validator\Constraints\Optional'
|
||||
'Symfony\Component\Validator\Constraints\Collection\Required': 'Symfony\Component\Validator\Constraints\Required'
|
||||
'Symfony\Component\Validator\MetadataInterface': 'Symfony\Component\Validator\Mapping\MetadataInterface'
|
||||
'Symfony\Component\Validator\PropertyMetadataInterface': 'Symfony\Component\Validator\Mapping\PropertyMetadataInterface'
|
||||
'Symfony\Component\Validator\PropertyMetadataContainerInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
|
||||
'Symfony\Component\Validator\ClassBasedInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
|
||||
'Symfony\Component\Validator\Mapping\ElementMetadata': 'Symfony\Component\Validator\Mapping\GenericMetadata'
|
||||
'Symfony\Component\Validator\ExecutionContextInterface': 'Symfony\Component\Validator\Context\ExecutionContextInterface'
|
||||
'Symfony\Component\Validator\Mapping\ClassMetadataFactory': 'Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory'
|
||||
'Symfony\Component\Validator\Mapping\MetadataFactoryInterface': 'Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface'
|
||||
# validator
|
||||
'Symfony\Component\Validator\Constraints\Collection\Optional': 'Symfony\Component\Validator\Constraints\Optional'
|
||||
'Symfony\Component\Validator\Constraints\Collection\Required': 'Symfony\Component\Validator\Constraints\Required'
|
||||
'Symfony\Component\Validator\MetadataInterface': 'Symfony\Component\Validator\Mapping\MetadataInterface'
|
||||
'Symfony\Component\Validator\PropertyMetadataInterface': 'Symfony\Component\Validator\Mapping\PropertyMetadataInterface'
|
||||
'Symfony\Component\Validator\PropertyMetadataContainerInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
|
||||
'Symfony\Component\Validator\ClassBasedInterface': 'Symfony\Component\Validator\Mapping\ClassMetadataInterface'
|
||||
'Symfony\Component\Validator\Mapping\ElementMetadata': 'Symfony\Component\Validator\Mapping\GenericMetadata'
|
||||
'Symfony\Component\Validator\ExecutionContextInterface': 'Symfony\Component\Validator\Context\ExecutionContextInterface'
|
||||
'Symfony\Component\Validator\Mapping\ClassMetadataFactory': 'Symfony\Component\Validator\Mapping\Factory\LazyLoadingMetadataFactory'
|
||||
'Symfony\Component\Validator\Mapping\MetadataFactoryInterface': 'Symfony\Component\Validator\Mapping\Factory\MetadataFactoryInterface'
|
||||
|
||||
# swift mailer
|
||||
'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector': 'Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector'
|
||||
# swift mailer
|
||||
'Symfony\Bridge\Swiftmailer\DataCollector\MessageDataCollector': 'Symfony\Bundle\SwiftmailerBundle\DataCollector\MessageDataCollector'
|
@ -1,52 +1,50 @@
|
||||
services:
|
||||
# yaml
|
||||
Rector\YamlRector\Rector\ReplaceStringYamlRector:
|
||||
$oldToNewString:
|
||||
# https://github.com/symfony/symfony/pull/17462
|
||||
' !!php/object': ' !php/object'
|
||||
# https://github.com/symfony/symfony/pull/17462
|
||||
' !!php/object': ' !php/object'
|
||||
|
||||
# replace args
|
||||
Rector\Rector\Argument\ArgumentDefaultValueReplacerRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
# covers https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.1.md#yaml
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
|
||||
# covers https://github.com/symfony/symfony/blob/3.4/UPGRADE-3.1.md#yaml
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'false'
|
||||
after: 0
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'false'
|
||||
after: 0
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE'
|
||||
|
@ -6,9 +6,8 @@ services:
|
||||
|
||||
# dependency-injection
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
method: addCompilerPass
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: Symfony\Component\DependencyInjection\ContainerBuilder
|
||||
method: addCompilerPass
|
||||
position: 2
|
||||
default_value: 0
|
||||
|
@ -1,48 +1,45 @@
|
||||
services:
|
||||
# dependency-injection
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
# added default value
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'compile'
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'addCompilerPass'
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph'
|
||||
method: 'connect'
|
||||
position: 6
|
||||
default_value: false
|
||||
# added default value
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'compile'
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'addCompilerPass'
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\Compiler\ServiceReferenceGraph'
|
||||
method: 'connect'
|
||||
position: 6
|
||||
default_value: false
|
||||
|
||||
Rector\Symfony\Rector\Console\ConsoleExceptionToErrorEventConstantRector: ~
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
# console
|
||||
'Symfony\Component\Console\Event\ConsoleExceptionEvent': 'Symfony\Component\Console\Event\ConsoleErrorEvent'
|
||||
# console
|
||||
'Symfony\Component\Console\Event\ConsoleExceptionEvent': 'Symfony\Component\Console\Event\ConsoleErrorEvent'
|
||||
|
||||
# debug
|
||||
'Symfony\Component\Debug\Exception\ContextErrorException': 'ErrorException'
|
||||
# debug
|
||||
'Symfony\Component\Debug\Exception\ContextErrorException': 'ErrorException'
|
||||
|
||||
# dependency-injection
|
||||
'Symfony\Component\DependencyInjection\DefinitionDecorator': 'Symfony\Component\DependencyInjection\ChildDefinition'
|
||||
# dependency-injection
|
||||
'Symfony\Component\DependencyInjection\DefinitionDecorator': 'Symfony\Component\DependencyInjection\ChildDefinition'
|
||||
|
||||
# framework bundle
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass': 'Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass': 'Symfony\Component\Serializer\DependencyInjection\SerializerPass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass': 'Symfony\Component\Form\DependencyInjection\FormPass'
|
||||
'Symfony\Bundle\FrameworkBundle\EventListener\SessionListener': 'Symfon\Component\HttpKernel\EventListener\SessionListener'
|
||||
'Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListenr': 'Symfony\Component\HttpKernel\EventListener\TestSessionListener'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass': 'Symfony\Component\Config\DependencyInjection\ConfigCachePass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass': 'Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass'
|
||||
# framework bundle
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddConsoleCommandPass': 'Symfony\Component\Console\DependencyInjection\AddConsoleCommandPass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\SerializerPass': 'Symfony\Component\Serializer\DependencyInjection\SerializerPass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\FormPass': 'Symfony\Component\Form\DependencyInjection\FormPass'
|
||||
'Symfony\Bundle\FrameworkBundle\EventListener\SessionListener': 'Symfon\Component\HttpKernel\EventListener\SessionListener'
|
||||
'Symfony\Bundle\FrameworkBundle\EventListener\TestSessionListenr': 'Symfony\Component\HttpKernel\EventListener\TestSessionListener'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\ConfigCachePass': 'Symfony\Component\Config\DependencyInjection\ConfigCachePass'
|
||||
'Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\PropertyInfoPass': 'Symfony\Component\PropertyInfo\DependencyInjection\PropertyInfoPass'
|
||||
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
# dependency-injection
|
||||
'Symfony\Component\DependencyInjection\Container':
|
||||
'isFrozen': 'isCompiled'
|
||||
# dependency-injection
|
||||
'Symfony\Component\DependencyInjection\Container':
|
||||
'isFrozen': 'isCompiled'
|
||||
|
@ -4,15 +4,13 @@ services:
|
||||
Rector\Symfony\Rector\Yaml\SessionStrictTrueByDefaultYamlRector: ~
|
||||
|
||||
Rector\YamlRector\Rector\ReplaceStringYamlRector:
|
||||
$oldToNewString:
|
||||
' !php/object:': ' !php/object '
|
||||
' !php/const:': ' !php/const '
|
||||
' !str': ' !!str'
|
||||
' !php/object:': ' !php/object '
|
||||
' !php/const:': ' !php/const '
|
||||
' !str': ' !!str'
|
||||
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 2
|
||||
value: 'Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 2
|
||||
value: 'Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'
|
||||
|
@ -9,6 +9,5 @@ services:
|
||||
Rector\Symfony\Rector\Process\ProcessBuilderGetProcessRector: ~
|
||||
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest': 'Symfony\Component\Validator\Test\ConstraintValidatorTestCase'
|
||||
'Symfony\Component\Process\ProcessBuilder': 'Symfony\Component\Process\Process'
|
||||
'Symfony\Component\Validator\Tests\Constraints\AbstractConstraintValidatorTest': 'Symfony\Component\Validator\Test\ConstraintValidatorTestCase'
|
||||
'Symfony\Component\Process\ProcessBuilder': 'Symfony\Component\Process\Process'
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\YamlRector\Rector\ReplaceValueYamlRector:
|
||||
$oldToNewKeyByPaths:
|
||||
# covers https://github.com/symfony/twig-bundle/commit/993c9f28d6d6ed0d9d3f45de80e512424b4cf88b
|
||||
'twig > strict_variables':
|
||||
'false': '%%kernel.debug%%'
|
||||
# covers https://github.com/symfony/twig-bundle/commit/993c9f28d6d6ed0d9d3f45de80e512424b4cf88b
|
||||
'twig > strict_variables':
|
||||
'false': '%%kernel.debug%%'
|
||||
|
@ -1,8 +1,7 @@
|
||||
services:
|
||||
# see https://stackoverflow.com/a/43495506/1348344
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
Twig_Function_Node: 'Twig_SimpleFunction'
|
||||
Twig_Function: 'Twig_SimpleFunction'
|
||||
Twig_Filter: 'Twig_SimpleFilter'
|
||||
Twig_Test: 'Twig_SimpleTest'
|
||||
Twig_Function_Node: 'Twig_SimpleFunction'
|
||||
Twig_Function: 'Twig_SimpleFunction'
|
||||
Twig_Filter: 'Twig_SimpleFilter'
|
||||
Twig_Test: 'Twig_SimpleTest'
|
@ -1,11 +1,10 @@
|
||||
services:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Twig_Node':
|
||||
'getLine': 'getTemplateLine'
|
||||
'getFilename': 'getTemplateName'
|
||||
'Twig_Template':
|
||||
'getSource': 'getSourceContext'
|
||||
'Twig_Error':
|
||||
'getTemplateFile': 'getTemplateName'
|
||||
'getTemplateName': 'setTemplateName'
|
||||
'Twig_Node':
|
||||
'getLine': 'getTemplateLine'
|
||||
'getFilename': 'getTemplateName'
|
||||
'Twig_Template':
|
||||
'getSource': 'getSourceContext'
|
||||
'Twig_Error':
|
||||
'getTemplateFile': 'getTemplateName'
|
||||
'getTemplateName': 'setTemplateName'
|
||||
|
@ -1,9 +1,8 @@
|
||||
services:
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
# see https://twig.symfony.com/doc/1.x/deprecated.html#filters
|
||||
Twig_SimpleFilter: 'Twig_Filter'
|
||||
# see https://twig.symfony.com/doc/1.x/deprecated.html#functions
|
||||
Twig_SimpleFunction: 'Twig_Function'
|
||||
# see https://github.com/bolt/bolt/pull/6596
|
||||
Twig_SimpleTest: 'Twig_Test'
|
||||
# see https://twig.symfony.com/doc/1.x/deprecated.html#filters
|
||||
Twig_SimpleFilter: 'Twig_Filter'
|
||||
# see https://twig.symfony.com/doc/1.x/deprecated.html#functions
|
||||
Twig_SimpleFunction: 'Twig_Function'
|
||||
# see https://github.com/bolt/bolt/pull/6596
|
||||
Twig_SimpleTest: 'Twig_Test'
|
||||
|
@ -1,159 +1,157 @@
|
||||
services:
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'Twig_LoaderInterface': 'Twig\Loader\LoaderInterface'
|
||||
'Twig_Extension_StringLoader': 'Twig\Extension\StringLoaderExtension'
|
||||
'Twig_Extension_Optimizer': 'Twig\Extension\OptimizerExtension'
|
||||
'Twig_Extension_Debug': 'Twig\Extension\DebugExtension'
|
||||
'Twig_Extension_Sandbox': 'Twig\Extension\SandboxExtension'
|
||||
'Twig_Extension_Profiler': 'Twig\Extension\ProfilerExtension'
|
||||
'Twig_Extension_Escaper': 'Twig\Extension\EscaperExtension'
|
||||
'Twig_Extension_Staging': 'Twig\Extension\StagingExtension'
|
||||
'Twig_Extension_Core': 'Twig\Extension\CoreExtension'
|
||||
'Twig_Node': 'Twig\Node\Node'
|
||||
'Twig_NodeVisitor_Optimizer': 'Twig\NodeVisitor\OptimizerNodeVisitor'
|
||||
'Twig_NodeVisitor_SafeAnalysis': 'Twig\NodeVisitor\SafeAnalysisNodeVisitor'
|
||||
'Twig_NodeVisitor_Sandbox': 'Twig\NodeVisitor\SandboxNodeVisitor'
|
||||
'Twig_NodeVisitor_Escaper': 'Twig\NodeVisitor\EscaperNodeVisitor'
|
||||
'Twig_SimpleFunction': 'Twig\TwigFunction'
|
||||
'Twig_Function': 'Twig\TwigFunction'
|
||||
'Twig_Error_Syntax': 'Twig\Error\SyntaxError'
|
||||
'Twig_Error_Loader': 'Twig\Error\LoaderError'
|
||||
'Twig_Error_Runtime': 'Twig\Error\RuntimeError'
|
||||
'Twig_TokenParser': 'Twig\TokenParser\AbstractTokenParser'
|
||||
'Twig_TokenParserInterface': 'Twig\TokenParser\TokenParserInterface'
|
||||
'Twig_CacheInterface': 'Twig\Cache\CacheInterface'
|
||||
'Twig_NodeVisitorInterface': 'Twig\NodeVisitor\NodeVisitorInterface'
|
||||
'Twig_Profiler_NodeVisitor_Profiler': 'Twig\Profiler\NodeVisitor\ProfilerNodeVisitor'
|
||||
'Twig_Profiler_Dumper_Text': 'Twig\Profiler\Dumper\TextDumper'
|
||||
'Twig_Profiler_Dumper_Base': 'Twig\Profiler\Dumper\BaseDumper'
|
||||
'Twig_Profiler_Dumper_Blackfire': 'Twig\Profiler\Dumper\BlackfireDumper'
|
||||
'Twig_Profiler_Dumper_Html': 'Twig\Profiler\Dumper\HtmlDumper'
|
||||
'Twig_Profiler_Node_LeaveProfile': 'Twig\Profiler\Node\LeaveProfileNode'
|
||||
'Twig_Profiler_Node_EnterProfile': 'Twig\Profiler\Node\EnterProfileNode'
|
||||
'Twig_Error': 'Twig\Error\Error'
|
||||
'Twig_ExistsLoaderInterface': 'Twig\Loader\ExistsLoaderInterface'
|
||||
'Twig_SimpleTest': 'Twig\TwigTest'
|
||||
'Twig_Test': 'Twig\TwigTest'
|
||||
'Twig_FactoryRuntimeLoader': 'Twig\RuntimeLoader\FactoryRuntimeLoader'
|
||||
'Twig_NodeOutputInterface': 'Twig\Node\NodeOutputInterface'
|
||||
'Twig_SimpleFilter': 'Twig\TwigFilter'
|
||||
'Twig_Filter': 'Twig\TwigFilter'
|
||||
'Twig_Loader_Chain': 'Twig\Loader\ChainLoader'
|
||||
'Twig_Loader_Array': 'Twig\Loader\ArrayLoader'
|
||||
'Twig_Loader_Filesystem': 'Twig\Loader\FilesystemLoader'
|
||||
'Twig_Cache_Null': 'Twig\Cache\NullCache'
|
||||
'Twig_Cache_Filesystem': 'Twig\Cache\FilesystemCache'
|
||||
'Twig_NodeCaptureInterface': 'Twig\Node\NodeCaptureInterface'
|
||||
'Twig_Extension': 'Twig\Extension\AbstractExtension'
|
||||
'Twig_TokenParser_Macro': 'Twig\TokenParser\MacroTokenParser'
|
||||
'Twig_TokenParser_Embed': 'Twig\TokenParser\EmbedTokenParser'
|
||||
'Twig_TokenParser_Do': 'Twig\TokenParser\DoTokenParser'
|
||||
'Twig_TokenParser_From': 'Twig\TokenParser\FromTokenParser'
|
||||
'Twig_TokenParser_Extends': 'Twig\TokenParser\ExtendsTokenParser'
|
||||
'Twig_TokenParser_Set': 'Twig\TokenParser\SetTokenParser'
|
||||
'Twig_TokenParser_Sandbox': 'Twig\TokenParser\SandboxTokenParser'
|
||||
'Twig_TokenParser_AutoEscape': 'Twig\TokenParser\AutoEscapeTokenParser'
|
||||
'Twig_TokenParser_With': 'Twig\TokenParser\WithTokenParser'
|
||||
'Twig_TokenParser_Include': 'Twig\TokenParser\IncludeTokenParser'
|
||||
'Twig_TokenParser_Block': 'Twig\TokenParser\BlockTokenParser'
|
||||
'Twig_TokenParser_Filter': 'Twig\TokenParser\FilterTokenParser'
|
||||
'Twig_TokenParser_If': 'Twig\TokenParser\IfTokenParser'
|
||||
'Twig_TokenParser_For': 'Twig\TokenParser\ForTokenParser'
|
||||
'Twig_TokenParser_Flush': 'Twig\TokenParser\FlushTokenParser'
|
||||
'Twig_TokenParser_Spaceless': 'Twig\TokenParser\SpacelessTokenParser'
|
||||
'Twig_TokenParser_Use': 'Twig\TokenParser\UseTokenParser'
|
||||
'Twig_TokenParser_Import': 'Twig\TokenParser\ImportTokenParser'
|
||||
'Twig_ContainerRuntimeLoader': 'Twig\RuntimeLoader\ContainerRuntimeLoader'
|
||||
'Twig_SourceContextLoaderInterface': 'Twig\Loader\SourceContextLoaderInterface'
|
||||
'Twig_NodeTraverser': 'Twig\NodeTraverser'
|
||||
'Twig_ExtensionInterface': 'Twig\Extension\ExtensionInterface'
|
||||
'Twig_Node_Macro': 'Twig\Node\MacroNode'
|
||||
'Twig_Node_Embed': 'Twig\Node\EmbedNode'
|
||||
'Twig_Node_Do': 'Twig\Node\DoNode'
|
||||
'Twig_Node_Text': 'Twig\Node\TextNode'
|
||||
'Twig_Node_Set': 'Twig\Node\SetNode'
|
||||
'Twig_Node_Sandbox': 'Twig\Node\SandboxNode'
|
||||
'Twig_Node_AutoEscape': 'Twig\Node\AutoEscapeNode'
|
||||
'Twig_Node_With': 'Twig\Node\WithNode'
|
||||
'Twig_Node_Include': 'Twig\Node\IncludeNode'
|
||||
'Twig_Node_Print': 'Twig\Node\PrintNode'
|
||||
'Twig_Node_Block': 'Twig\Node\BlockNode'
|
||||
'Twig_Node_Expression_MethodCall': 'Twig\Node\Expression\MethodCallExpression'
|
||||
'Twig_Node_Expression_Unary_Pos': 'Twig\Node\Expression\Unary\PosUnary'
|
||||
'Twig_Node_Expression_Unary_Not': 'Twig\Node\Expression\Unary\NotUnary'
|
||||
'Twig_Node_Expression_Unary_Neg': 'Twig\Node\Expression\Unary\NegUnary'
|
||||
'Twig_Node_Expression_GetAttr': 'Twig\Node\Expression\GetAttrExpression'
|
||||
'Twig_Node_Expression_Function': 'Twig\Node\Expression\FunctionExpression'
|
||||
'Twig_Node_Expression_Binary_Power': 'Twig\Node\Expression\Binary\PowerBinary'
|
||||
'Twig_Node_Expression_Binary_In': 'Twig\Node\Expression\Binary\InBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseXor': 'Twig\Node\Expression\Binary\BitwiseXorBinary'
|
||||
'Twig_Node_Expression_Binary_Concat': 'Twig\Node\Expression\Binary\ConcatBinary'
|
||||
'Twig_Node_Expression_Binary_NotEqual': 'Twig\Node\Expression\Binary\NotEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Less': 'Twig\Node\Expression\Binary\LessBinary'
|
||||
'Twig_Node_Expression_Binary_And': 'Twig\Node\Expression\Binary\AndBinary'
|
||||
'Twig_Node_Expression_Binary_GreaterEqual': 'Twig\Node\Expression\Binary\GreaterEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Mod': 'Twig\Node\Expression\Binary\ModBinary'
|
||||
'Twig_Node_Expression_Binary_NotIn': 'Twig\Node\Expression\Binary\NotInBinary'
|
||||
'Twig_Node_Expression_Binary_Add': 'Twig\Node\Expression\Binary\AddBinary'
|
||||
'Twig_Node_Expression_Binary_Matches': 'Twig\Node\Expression\Binary\MatchesBinary'
|
||||
'Twig_Node_Expression_Binary_EndsWith': 'Twig\Node\Expression\Binary\EndsWithBinary'
|
||||
'Twig_Node_Expression_Binary_FloorDiv': 'Twig\Node\Expression\Binary\FloorDivBinary'
|
||||
'Twig_Node_Expression_Binary_StartsWith': 'Twig\Node\Expression\Binary\StartsWithBinary'
|
||||
'Twig_Node_Expression_Binary_LessEqual': 'Twig\Node\Expression\Binary\LessEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Equal': 'Twig\Node\Expression\Binary\EqualBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseAnd': 'Twig\Node\Expression\Binary\BitwiseAndBinary'
|
||||
'Twig_Node_Expression_Binary_Mul': 'Twig\Node\Expression\Binary\MulBinary'
|
||||
'Twig_Node_Expression_Binary_Range': 'Twig\Node\Expression\Binary\RangeBinary'
|
||||
'Twig_Node_Expression_Binary_Or': 'Twig\Node\Expression\Binary\OrBinary'
|
||||
'Twig_Node_Expression_Binary_Greater': 'Twig\Node\Expression\Binary\GreaterBinary'
|
||||
'Twig_Node_Expression_Binary_Div': 'Twig\Node\Expression\Binary\DivBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseOr': 'Twig\Node\Expression\Binary\BitwiseOrBinary'
|
||||
'Twig_Node_Expression_Binary_Sub': 'Twig\Node\Expression\Binary\SubBinary'
|
||||
'Twig_Node_Expression_Test_Even': 'Twig\Node\Expression\Test\EvenTest'
|
||||
'Twig_Node_Expression_Test_Defined': 'Twig\Node\Expression\Test\DefinedTest'
|
||||
'Twig_Node_Expression_Test_Sameas': 'Twig\Node\Expression\Test\SameasTest'
|
||||
'Twig_Node_Expression_Test_Odd': 'Twig\Node\Expression\Test\OddTest'
|
||||
'Twig_Node_Expression_Test_Constant': 'Twig\Node\Expression\Test\ConstantTest'
|
||||
'Twig_Node_Expression_Test_Null': 'Twig\Node\Expression\Test\NullTest'
|
||||
'Twig_Node_Expression_Test_Divisibleby': 'Twig\Node\Expression\Test\DivisiblebyTest'
|
||||
'Twig_Node_Expression_Array': 'Twig\Node\Expression\ArrayExpression'
|
||||
'Twig_Node_Expression_Binary': 'Twig\Node\Expression\Binary\AbstractBinary'
|
||||
'Twig_Node_Expression_Constant': 'Twig\Node\Expression\ConstantExpression'
|
||||
'Twig_Node_Expression_Parent': 'Twig\Node\Expression\ParentExpression'
|
||||
'Twig_Node_Expression_Test': 'Twig\Node\Expression\TestExpression'
|
||||
'Twig_Node_Expression_Filter_Default': 'Twig\Node\Expression\Filter\DefaultFilter'
|
||||
'Twig_Node_Expression_Filter': 'Twig\Node\Expression\FilterExpression'
|
||||
'Twig_Node_Expression_BlockReference': 'Twig\Node\Expression\BlockReferenceExpression'
|
||||
'Twig_Node_Expression_NullCoalesce': 'Twig\Node\Expression\NullCoalesceExpression'
|
||||
'Twig_Node_Expression_Name': 'Twig\Node\Expression\NameExpression'
|
||||
'Twig_Node_Expression_TempName': 'Twig\Node\Expression\TempNameExpression'
|
||||
'Twig_Node_Expression_Call': 'Twig\Node\Expression\CallExpression'
|
||||
'Twig_Node_Expression_Unary': 'Twig\Node\Expression\Unary\AbstractUnary'
|
||||
'Twig_Node_Expression_AssignName': 'Twig\Node\Expression\AssignNameExpression'
|
||||
'Twig_Node_Expression_Conditional': 'Twig\Node\Expression\ConditionalExpression'
|
||||
'Twig_Node_CheckSecurity': 'Twig\Node\CheckSecurityNode'
|
||||
'Twig_Node_Expression': 'Twig\Node\Expression\AbstractExpression'
|
||||
'Twig_Node_ForLoop': 'Twig\Node\ForLoopNode'
|
||||
'Twig_Node_If': 'Twig\Node\IfNode'
|
||||
'Twig_Node_For': 'Twig\Node\ForNode'
|
||||
'Twig_Node_BlockReference': 'Twig\Node\BlockReferenceNode'
|
||||
'Twig_Node_Flush': 'Twig\Node\FlushNode'
|
||||
'Twig_Node_Body': 'Twig\Node\BodyNode'
|
||||
'Twig_Node_Spaceless': 'Twig\Node\SpacelessNode'
|
||||
'Twig_Node_Import': 'Twig\Node\ImportNode'
|
||||
'Twig_Node_SandboxedPrint': 'Twig\Node\SandboxedPrintNode'
|
||||
'Twig_Node_Module': 'Twig\Node\ModuleNode'
|
||||
'Twig_RuntimeLoaderInterface': 'Twig\RuntimeLoader\RuntimeLoaderInterface'
|
||||
'Twig_BaseNodeVisitor': 'Twig\NodeVisitor\AbstractNodeVisitor'
|
||||
'Twig_Extensions_Extension_Text': 'Twig\Extensions\TextExtension'
|
||||
'Twig_Extensions_Extension_Array': 'Twig\Extensions\ArrayExtension'
|
||||
'Twig_Extensions_Extension_Date': 'Twig\Extensions\DateExtension'
|
||||
'Twig_Extensions_Extension_I18n': 'Twig\Extensions\I18nExtension'
|
||||
'Twig_Extensions_Extension_Intl': 'Twig\Extensions\IntlExtension'
|
||||
'Twig_Extensions_TokenParser_Trans': 'Twig\Extensions\TokenParser\TransTokenParser'
|
||||
'Twig_Extensions_Node_Trans': 'Twig\Extensions\Node\TransNode'
|
||||
'Twig_LoaderInterface': 'Twig\Loader\LoaderInterface'
|
||||
'Twig_Extension_StringLoader': 'Twig\Extension\StringLoaderExtension'
|
||||
'Twig_Extension_Optimizer': 'Twig\Extension\OptimizerExtension'
|
||||
'Twig_Extension_Debug': 'Twig\Extension\DebugExtension'
|
||||
'Twig_Extension_Sandbox': 'Twig\Extension\SandboxExtension'
|
||||
'Twig_Extension_Profiler': 'Twig\Extension\ProfilerExtension'
|
||||
'Twig_Extension_Escaper': 'Twig\Extension\EscaperExtension'
|
||||
'Twig_Extension_Staging': 'Twig\Extension\StagingExtension'
|
||||
'Twig_Extension_Core': 'Twig\Extension\CoreExtension'
|
||||
'Twig_Node': 'Twig\Node\Node'
|
||||
'Twig_NodeVisitor_Optimizer': 'Twig\NodeVisitor\OptimizerNodeVisitor'
|
||||
'Twig_NodeVisitor_SafeAnalysis': 'Twig\NodeVisitor\SafeAnalysisNodeVisitor'
|
||||
'Twig_NodeVisitor_Sandbox': 'Twig\NodeVisitor\SandboxNodeVisitor'
|
||||
'Twig_NodeVisitor_Escaper': 'Twig\NodeVisitor\EscaperNodeVisitor'
|
||||
'Twig_SimpleFunction': 'Twig\TwigFunction'
|
||||
'Twig_Function': 'Twig\TwigFunction'
|
||||
'Twig_Error_Syntax': 'Twig\Error\SyntaxError'
|
||||
'Twig_Error_Loader': 'Twig\Error\LoaderError'
|
||||
'Twig_Error_Runtime': 'Twig\Error\RuntimeError'
|
||||
'Twig_TokenParser': 'Twig\TokenParser\AbstractTokenParser'
|
||||
'Twig_TokenParserInterface': 'Twig\TokenParser\TokenParserInterface'
|
||||
'Twig_CacheInterface': 'Twig\Cache\CacheInterface'
|
||||
'Twig_NodeVisitorInterface': 'Twig\NodeVisitor\NodeVisitorInterface'
|
||||
'Twig_Profiler_NodeVisitor_Profiler': 'Twig\Profiler\NodeVisitor\ProfilerNodeVisitor'
|
||||
'Twig_Profiler_Dumper_Text': 'Twig\Profiler\Dumper\TextDumper'
|
||||
'Twig_Profiler_Dumper_Base': 'Twig\Profiler\Dumper\BaseDumper'
|
||||
'Twig_Profiler_Dumper_Blackfire': 'Twig\Profiler\Dumper\BlackfireDumper'
|
||||
'Twig_Profiler_Dumper_Html': 'Twig\Profiler\Dumper\HtmlDumper'
|
||||
'Twig_Profiler_Node_LeaveProfile': 'Twig\Profiler\Node\LeaveProfileNode'
|
||||
'Twig_Profiler_Node_EnterProfile': 'Twig\Profiler\Node\EnterProfileNode'
|
||||
'Twig_Error': 'Twig\Error\Error'
|
||||
'Twig_ExistsLoaderInterface': 'Twig\Loader\ExistsLoaderInterface'
|
||||
'Twig_SimpleTest': 'Twig\TwigTest'
|
||||
'Twig_Test': 'Twig\TwigTest'
|
||||
'Twig_FactoryRuntimeLoader': 'Twig\RuntimeLoader\FactoryRuntimeLoader'
|
||||
'Twig_NodeOutputInterface': 'Twig\Node\NodeOutputInterface'
|
||||
'Twig_SimpleFilter': 'Twig\TwigFilter'
|
||||
'Twig_Filter': 'Twig\TwigFilter'
|
||||
'Twig_Loader_Chain': 'Twig\Loader\ChainLoader'
|
||||
'Twig_Loader_Array': 'Twig\Loader\ArrayLoader'
|
||||
'Twig_Loader_Filesystem': 'Twig\Loader\FilesystemLoader'
|
||||
'Twig_Cache_Null': 'Twig\Cache\NullCache'
|
||||
'Twig_Cache_Filesystem': 'Twig\Cache\FilesystemCache'
|
||||
'Twig_NodeCaptureInterface': 'Twig\Node\NodeCaptureInterface'
|
||||
'Twig_Extension': 'Twig\Extension\AbstractExtension'
|
||||
'Twig_TokenParser_Macro': 'Twig\TokenParser\MacroTokenParser'
|
||||
'Twig_TokenParser_Embed': 'Twig\TokenParser\EmbedTokenParser'
|
||||
'Twig_TokenParser_Do': 'Twig\TokenParser\DoTokenParser'
|
||||
'Twig_TokenParser_From': 'Twig\TokenParser\FromTokenParser'
|
||||
'Twig_TokenParser_Extends': 'Twig\TokenParser\ExtendsTokenParser'
|
||||
'Twig_TokenParser_Set': 'Twig\TokenParser\SetTokenParser'
|
||||
'Twig_TokenParser_Sandbox': 'Twig\TokenParser\SandboxTokenParser'
|
||||
'Twig_TokenParser_AutoEscape': 'Twig\TokenParser\AutoEscapeTokenParser'
|
||||
'Twig_TokenParser_With': 'Twig\TokenParser\WithTokenParser'
|
||||
'Twig_TokenParser_Include': 'Twig\TokenParser\IncludeTokenParser'
|
||||
'Twig_TokenParser_Block': 'Twig\TokenParser\BlockTokenParser'
|
||||
'Twig_TokenParser_Filter': 'Twig\TokenParser\FilterTokenParser'
|
||||
'Twig_TokenParser_If': 'Twig\TokenParser\IfTokenParser'
|
||||
'Twig_TokenParser_For': 'Twig\TokenParser\ForTokenParser'
|
||||
'Twig_TokenParser_Flush': 'Twig\TokenParser\FlushTokenParser'
|
||||
'Twig_TokenParser_Spaceless': 'Twig\TokenParser\SpacelessTokenParser'
|
||||
'Twig_TokenParser_Use': 'Twig\TokenParser\UseTokenParser'
|
||||
'Twig_TokenParser_Import': 'Twig\TokenParser\ImportTokenParser'
|
||||
'Twig_ContainerRuntimeLoader': 'Twig\RuntimeLoader\ContainerRuntimeLoader'
|
||||
'Twig_SourceContextLoaderInterface': 'Twig\Loader\SourceContextLoaderInterface'
|
||||
'Twig_NodeTraverser': 'Twig\NodeTraverser'
|
||||
'Twig_ExtensionInterface': 'Twig\Extension\ExtensionInterface'
|
||||
'Twig_Node_Macro': 'Twig\Node\MacroNode'
|
||||
'Twig_Node_Embed': 'Twig\Node\EmbedNode'
|
||||
'Twig_Node_Do': 'Twig\Node\DoNode'
|
||||
'Twig_Node_Text': 'Twig\Node\TextNode'
|
||||
'Twig_Node_Set': 'Twig\Node\SetNode'
|
||||
'Twig_Node_Sandbox': 'Twig\Node\SandboxNode'
|
||||
'Twig_Node_AutoEscape': 'Twig\Node\AutoEscapeNode'
|
||||
'Twig_Node_With': 'Twig\Node\WithNode'
|
||||
'Twig_Node_Include': 'Twig\Node\IncludeNode'
|
||||
'Twig_Node_Print': 'Twig\Node\PrintNode'
|
||||
'Twig_Node_Block': 'Twig\Node\BlockNode'
|
||||
'Twig_Node_Expression_MethodCall': 'Twig\Node\Expression\MethodCallExpression'
|
||||
'Twig_Node_Expression_Unary_Pos': 'Twig\Node\Expression\Unary\PosUnary'
|
||||
'Twig_Node_Expression_Unary_Not': 'Twig\Node\Expression\Unary\NotUnary'
|
||||
'Twig_Node_Expression_Unary_Neg': 'Twig\Node\Expression\Unary\NegUnary'
|
||||
'Twig_Node_Expression_GetAttr': 'Twig\Node\Expression\GetAttrExpression'
|
||||
'Twig_Node_Expression_Function': 'Twig\Node\Expression\FunctionExpression'
|
||||
'Twig_Node_Expression_Binary_Power': 'Twig\Node\Expression\Binary\PowerBinary'
|
||||
'Twig_Node_Expression_Binary_In': 'Twig\Node\Expression\Binary\InBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseXor': 'Twig\Node\Expression\Binary\BitwiseXorBinary'
|
||||
'Twig_Node_Expression_Binary_Concat': 'Twig\Node\Expression\Binary\ConcatBinary'
|
||||
'Twig_Node_Expression_Binary_NotEqual': 'Twig\Node\Expression\Binary\NotEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Less': 'Twig\Node\Expression\Binary\LessBinary'
|
||||
'Twig_Node_Expression_Binary_And': 'Twig\Node\Expression\Binary\AndBinary'
|
||||
'Twig_Node_Expression_Binary_GreaterEqual': 'Twig\Node\Expression\Binary\GreaterEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Mod': 'Twig\Node\Expression\Binary\ModBinary'
|
||||
'Twig_Node_Expression_Binary_NotIn': 'Twig\Node\Expression\Binary\NotInBinary'
|
||||
'Twig_Node_Expression_Binary_Add': 'Twig\Node\Expression\Binary\AddBinary'
|
||||
'Twig_Node_Expression_Binary_Matches': 'Twig\Node\Expression\Binary\MatchesBinary'
|
||||
'Twig_Node_Expression_Binary_EndsWith': 'Twig\Node\Expression\Binary\EndsWithBinary'
|
||||
'Twig_Node_Expression_Binary_FloorDiv': 'Twig\Node\Expression\Binary\FloorDivBinary'
|
||||
'Twig_Node_Expression_Binary_StartsWith': 'Twig\Node\Expression\Binary\StartsWithBinary'
|
||||
'Twig_Node_Expression_Binary_LessEqual': 'Twig\Node\Expression\Binary\LessEqualBinary'
|
||||
'Twig_Node_Expression_Binary_Equal': 'Twig\Node\Expression\Binary\EqualBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseAnd': 'Twig\Node\Expression\Binary\BitwiseAndBinary'
|
||||
'Twig_Node_Expression_Binary_Mul': 'Twig\Node\Expression\Binary\MulBinary'
|
||||
'Twig_Node_Expression_Binary_Range': 'Twig\Node\Expression\Binary\RangeBinary'
|
||||
'Twig_Node_Expression_Binary_Or': 'Twig\Node\Expression\Binary\OrBinary'
|
||||
'Twig_Node_Expression_Binary_Greater': 'Twig\Node\Expression\Binary\GreaterBinary'
|
||||
'Twig_Node_Expression_Binary_Div': 'Twig\Node\Expression\Binary\DivBinary'
|
||||
'Twig_Node_Expression_Binary_BitwiseOr': 'Twig\Node\Expression\Binary\BitwiseOrBinary'
|
||||
'Twig_Node_Expression_Binary_Sub': 'Twig\Node\Expression\Binary\SubBinary'
|
||||
'Twig_Node_Expression_Test_Even': 'Twig\Node\Expression\Test\EvenTest'
|
||||
'Twig_Node_Expression_Test_Defined': 'Twig\Node\Expression\Test\DefinedTest'
|
||||
'Twig_Node_Expression_Test_Sameas': 'Twig\Node\Expression\Test\SameasTest'
|
||||
'Twig_Node_Expression_Test_Odd': 'Twig\Node\Expression\Test\OddTest'
|
||||
'Twig_Node_Expression_Test_Constant': 'Twig\Node\Expression\Test\ConstantTest'
|
||||
'Twig_Node_Expression_Test_Null': 'Twig\Node\Expression\Test\NullTest'
|
||||
'Twig_Node_Expression_Test_Divisibleby': 'Twig\Node\Expression\Test\DivisiblebyTest'
|
||||
'Twig_Node_Expression_Array': 'Twig\Node\Expression\ArrayExpression'
|
||||
'Twig_Node_Expression_Binary': 'Twig\Node\Expression\Binary\AbstractBinary'
|
||||
'Twig_Node_Expression_Constant': 'Twig\Node\Expression\ConstantExpression'
|
||||
'Twig_Node_Expression_Parent': 'Twig\Node\Expression\ParentExpression'
|
||||
'Twig_Node_Expression_Test': 'Twig\Node\Expression\TestExpression'
|
||||
'Twig_Node_Expression_Filter_Default': 'Twig\Node\Expression\Filter\DefaultFilter'
|
||||
'Twig_Node_Expression_Filter': 'Twig\Node\Expression\FilterExpression'
|
||||
'Twig_Node_Expression_BlockReference': 'Twig\Node\Expression\BlockReferenceExpression'
|
||||
'Twig_Node_Expression_NullCoalesce': 'Twig\Node\Expression\NullCoalesceExpression'
|
||||
'Twig_Node_Expression_Name': 'Twig\Node\Expression\NameExpression'
|
||||
'Twig_Node_Expression_TempName': 'Twig\Node\Expression\TempNameExpression'
|
||||
'Twig_Node_Expression_Call': 'Twig\Node\Expression\CallExpression'
|
||||
'Twig_Node_Expression_Unary': 'Twig\Node\Expression\Unary\AbstractUnary'
|
||||
'Twig_Node_Expression_AssignName': 'Twig\Node\Expression\AssignNameExpression'
|
||||
'Twig_Node_Expression_Conditional': 'Twig\Node\Expression\ConditionalExpression'
|
||||
'Twig_Node_CheckSecurity': 'Twig\Node\CheckSecurityNode'
|
||||
'Twig_Node_Expression': 'Twig\Node\Expression\AbstractExpression'
|
||||
'Twig_Node_ForLoop': 'Twig\Node\ForLoopNode'
|
||||
'Twig_Node_If': 'Twig\Node\IfNode'
|
||||
'Twig_Node_For': 'Twig\Node\ForNode'
|
||||
'Twig_Node_BlockReference': 'Twig\Node\BlockReferenceNode'
|
||||
'Twig_Node_Flush': 'Twig\Node\FlushNode'
|
||||
'Twig_Node_Body': 'Twig\Node\BodyNode'
|
||||
'Twig_Node_Spaceless': 'Twig\Node\SpacelessNode'
|
||||
'Twig_Node_Import': 'Twig\Node\ImportNode'
|
||||
'Twig_Node_SandboxedPrint': 'Twig\Node\SandboxedPrintNode'
|
||||
'Twig_Node_Module': 'Twig\Node\ModuleNode'
|
||||
'Twig_RuntimeLoaderInterface': 'Twig\RuntimeLoader\RuntimeLoaderInterface'
|
||||
'Twig_BaseNodeVisitor': 'Twig\NodeVisitor\AbstractNodeVisitor'
|
||||
'Twig_Extensions_Extension_Text': 'Twig\Extensions\TextExtension'
|
||||
'Twig_Extensions_Extension_Array': 'Twig\Extensions\ArrayExtension'
|
||||
'Twig_Extensions_Extension_Date': 'Twig\Extensions\DateExtension'
|
||||
'Twig_Extensions_Extension_I18n': 'Twig\Extensions\I18nExtension'
|
||||
'Twig_Extensions_Extension_Intl': 'Twig\Extensions\IntlExtension'
|
||||
'Twig_Extensions_TokenParser_Trans': 'Twig\Extensions\TokenParser\TransTokenParser'
|
||||
'Twig_Extensions_Node_Trans': 'Twig\Extensions\Node\TransNode'
|
||||
|
||||
Rector\Rector\Namespace_\PseudoNamespaceToNamespaceRector:
|
||||
$pseudoNamespacePrefixes:
|
||||
- 'Twig_'
|
||||
- 'Twig_'
|
||||
|
@ -1,14 +1,13 @@
|
||||
services:
|
||||
Rector\CakePHP\Rector\MethodCall\ModalToGetSetRector:
|
||||
$methodNamesByTypes:
|
||||
'Rector\CakePHP\Tests\Rector\MethodCall\ModalToGetSetRector\Source\SomeModelType':
|
||||
config:
|
||||
get: 'getConfig'
|
||||
minimal_argument_count: 2
|
||||
first_argument_type_to_set: 'array'
|
||||
customMethod:
|
||||
get: 'customMethodGetName'
|
||||
set: 'customMethodSetName'
|
||||
minimal_argument_count: 2
|
||||
first_argument_type_to_set: 'array'
|
||||
method: ~
|
||||
'Rector\CakePHP\Tests\Rector\MethodCall\ModalToGetSetRector\Source\SomeModelType':
|
||||
config:
|
||||
get: 'getConfig'
|
||||
minimal_argument_count: 2
|
||||
first_argument_type_to_set: 'array'
|
||||
customMethod:
|
||||
get: 'customMethodGetName'
|
||||
set: 'customMethodSetName'
|
||||
minimal_argument_count: 2
|
||||
first_argument_type_to_set: 'array'
|
||||
method: ~
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Doctrine\Rector\AliasToClassRector:
|
||||
$aliasesToNamespaces:
|
||||
'App': 'App\Entity'
|
||||
'App': 'App\Entity'
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\YamlRector\Rector\RenameSubKeyYamlRector:
|
||||
$pathsToNewKeys:
|
||||
'security > firewalls > default > anonymous > old_key': 'new_key'
|
||||
'security > firewalls > default > http_digest > old_key': 'new_key'
|
||||
'security > firewalls > default > remember_me > old_key': 'new_key'
|
||||
'main_key > old_sub_key': 'new_sub_key'
|
||||
'security > firewalls > default > anonymous > old_key': 'new_key'
|
||||
'security > firewalls > default > http_digest > old_key': 'new_key'
|
||||
'security > firewalls > default > remember_me > old_key': 'new_key'
|
||||
'main_key > old_sub_key': 'new_sub_key'
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\YamlRector\Rector\ReplaceStringYamlRector:
|
||||
$oldToNewString:
|
||||
' !!php/object': ' !php/object'
|
||||
' !php/object:': ' !php/object '
|
||||
' !!php/object': ' !php/object'
|
||||
' !php/object:': ' !php/object '
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\YamlRector\Rector\ReplaceValueYamlRector:
|
||||
$oldToNewKeyByPaths:
|
||||
# covers https://github.com/symfony/twig-bundle/commit/993c9f28d6d6ed0d9d3f45de80e512424b4cf88b
|
||||
'twig > strict_variables':
|
||||
'false': '%%kernel.debug%%'
|
||||
# covers https://github.com/symfony/twig-bundle/commit/993c9f28d6d6ed0d9d3f45de80e512424b4cf88b
|
||||
'twig > strict_variables':
|
||||
'false': '%%kernel.debug%%'
|
||||
|
@ -145,7 +145,7 @@ final class RectorServiceParametersShifter
|
||||
$arrayParameters = [];
|
||||
foreach ($constructorMethodReflection->getParameters() as $reflectionParameter) {
|
||||
if (! $reflectionParameter->isArray()) {
|
||||
return [];
|
||||
continue;
|
||||
}
|
||||
|
||||
$arrayParameters[] = $reflectionParameter->getName();
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Rector\Annotation\AnnotationReplacerRector:
|
||||
$classToAnnotationMap:
|
||||
PHPUnit\Framework\TestCase:
|
||||
scenario: test
|
||||
PHPUnit\Framework\TestCase:
|
||||
scenario: 'test'
|
||||
|
@ -1,14 +1,13 @@
|
||||
services:
|
||||
Rector\Rector\Argument\ArgumentAdderRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'compile'
|
||||
position: 0
|
||||
default_value: false
|
||||
# added default value
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'addCompilerPass'
|
||||
position: 2
|
||||
default_value: 0
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'compile'
|
||||
position: 0
|
||||
default_value: false
|
||||
# added default value
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\ContainerBuilder'
|
||||
method: 'addCompilerPass'
|
||||
position: 2
|
||||
default_value: 0
|
||||
|
@ -1,51 +1,50 @@
|
||||
services:
|
||||
Rector\Rector\Argument\ArgumentDefaultValueReplacerRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\Definition'
|
||||
method: 'setScope'
|
||||
position: 0
|
||||
before: 'Symfony\Component\DependencyInjection\ContainerBuilder::SCOPE_PROTOTYPE'
|
||||
after: false
|
||||
-
|
||||
class: 'Symfony\Component\DependencyInjection\Definition'
|
||||
method: 'setScope'
|
||||
position: 0
|
||||
before: 'Symfony\Component\DependencyInjection\ContainerBuilder::SCOPE_PROTOTYPE'
|
||||
after: false
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT_FOR_MAP'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_OBJECT'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'false'
|
||||
after: 0
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'false'
|
||||
after: 0
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: ['false', 'true']
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_OBJECT'
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'dump'
|
||||
position: 3
|
||||
before: 'true'
|
||||
after: 'Symfony\Component\Yaml\Yaml::DUMP_EXCEPTION_ON_INVALID_TYPE'
|
||||
|
@ -1,13 +1,12 @@
|
||||
services:
|
||||
Rector\Rector\Argument\ArgumentRemoverRector:
|
||||
$argumentChangesByMethodAndType:
|
||||
-
|
||||
class: 'Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister'
|
||||
method: 'getSelectJoinColumnSQL'
|
||||
position: 4
|
||||
-
|
||||
class: 'Doctrine\ORM\Persisters\Entity\AbstractEntityInheritancePersister'
|
||||
method: 'getSelectJoinColumnSQL'
|
||||
position: 4
|
||||
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
value: 'Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'
|
||||
-
|
||||
class: 'Symfony\Component\Yaml\Yaml'
|
||||
method: 'parse'
|
||||
position: 1
|
||||
value: 'Symfony\Component\Yaml\Yaml::PARSE_KEYS_AS_STRINGS'
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\Class_\ClassReplacerRector:
|
||||
$oldToNewClasses:
|
||||
'SomeNamespace\OldClass': 'Rector\Tests\Rector\Class_\ClassReplacerRector\Source\NewClass'
|
||||
'PhpParser\BuilderAbstract': 'PhpParser\Builder'
|
||||
'SomeNamespace\OldClass': 'Rector\Tests\Rector\Class_\ClassReplacerRector\Source\NewClass'
|
||||
'PhpParser\BuilderAbstract': 'PhpParser\Builder'
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
services:
|
||||
Rector\Rector\Class_\ParentClassToTraitsRector:
|
||||
$parentClassToTraits:
|
||||
'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\ParentObject':
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SomeTrait'
|
||||
'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\AnotherParentObject':
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SomeTrait'
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SecondTrait'
|
||||
'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\ParentObject':
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SomeTrait'
|
||||
'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\AnotherParentObject':
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SomeTrait'
|
||||
- 'Rector\Tests\Rector\Class_\ParentClassToTraitsRector\Source\SecondTrait'
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\Rector\Constant\ClassConstantReplacerRector:
|
||||
$oldToNewConstantsByClass:
|
||||
'Symfony\Component\Form\FormEvents':
|
||||
'PRE_BIND': 'PRE_SUBMIT'
|
||||
'BIND': 'SUBMIT'
|
||||
'POST_BIND': 'POST_SUBMIT'
|
||||
'Symfony\Component\Form\FormEvents':
|
||||
'PRE_BIND': 'PRE_SUBMIT'
|
||||
'BIND': 'SUBMIT'
|
||||
'POST_BIND': 'POST_SUBMIT'
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\DomainDrivenDesign\ValueObjectRemover\ValueObjectRemoverDocBlockRector:
|
||||
$valueObjectsToSimpleTypes:
|
||||
'Rector\Tests\Rector\DomainDrivenDesign\ValueObjectRemoverDocBlockRector\Source\SomeValueObject': 'string'
|
||||
'Rector\Tests\Rector\DomainDrivenDesign\ValueObjectRemoverDocBlockRector\Source\SomeValueObject': 'string'
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\DomainDrivenDesign\ValueObjectRemover\ValueObjectRemoverRector:
|
||||
$valueObjectsToSimpleTypes:
|
||||
'Rector\Tests\Rector\DomainDrivenDesign\ValueObjectRemoverRector\Source\SomeValueObject': 'string'
|
||||
'Rector\Tests\Rector\DomainDrivenDesign\ValueObjectRemoverRector\Source\SomeValueObject': 'string'
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\Function_\FunctionReplaceRector:
|
||||
$oldFunctionToNewFunction:
|
||||
'view': 'Laravel\Templating\render'
|
||||
'view': 'Laravel\Templating\render'
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\Function_\FunctionToMethodCallRector:
|
||||
$functionToMethodCall:
|
||||
'view': ['this', 'render']
|
||||
'view': ['this', 'render']
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Rector\Function_\FunctionToStaticCallRector:
|
||||
$functionToMethodCall:
|
||||
'view': ['SomeStaticClass', 'render']
|
||||
'SomeNamespaced\view': ['AnotherStaticClass', 'render']
|
||||
'view': ['SomeStaticClass', 'render']
|
||||
'SomeNamespaced\view': ['AnotherStaticClass', 'render']
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\Interface_\MergeInterfacesRector:
|
||||
$oldToNewInterfaces:
|
||||
'Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface': 'Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeInterface'
|
||||
'Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeOldInterface': 'Rector\Tests\Rector\Interface_\MergeInterfacesRector\Source\SomeInterface'
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\MagicDisclosure\GetAndSetToMethodCallRector:
|
||||
$typeToMethodCalls:
|
||||
'Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeContainer':
|
||||
'get': 'getService'
|
||||
'set': 'addService'
|
||||
'Rector\Tests\Rector\MagicDisclosure\GetAndSetToMethodCallRector\Source\SomeContainer':
|
||||
'get': 'getService'
|
||||
'set': 'addService'
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Rector\MagicDisclosure\ToStringToMethodCallRector:
|
||||
$typeToMethodCalls:
|
||||
'Symfony\Component\Config\ConfigCache':
|
||||
'toString': 'getPath'
|
||||
'Symfony\Component\Config\ConfigCache':
|
||||
'toString': 'getPath'
|
||||
|
@ -1,6 +1,5 @@
|
||||
services:
|
||||
Rector\Rector\MagicDisclosure\UnsetAndIssetToMethodCallRector:
|
||||
$typeToMethodCalls:
|
||||
'Nette\DI\Container':
|
||||
'isset': 'hasService'
|
||||
'unset': 'removeService'
|
||||
'Nette\DI\Container':
|
||||
'isset': 'hasService'
|
||||
'unset': 'removeService'
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\Rector\MethodBody\NormalToFluentRector:
|
||||
$fluentMethodsByType:
|
||||
Rector\Tests\Rector\MethodBody\NormalToFluentRector\Source\FluentInterfaceClass:
|
||||
- 'someFunction'
|
||||
- 'otherFunction'
|
||||
- 'joinThisAsWell'
|
||||
Rector\Tests\Rector\MethodBody\NormalToFluentRector\Source\FluentInterfaceClass:
|
||||
- 'someFunction'
|
||||
- 'otherFunction'
|
||||
- 'joinThisAsWell'
|
||||
|
@ -1,9 +1,8 @@
|
||||
services:
|
||||
Rector\Rector\MethodCall\MethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\AbstractType':
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Nette\Utils\Html':
|
||||
'add': 'addHtml'
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\FormMacros':
|
||||
'renderFormBegin': ['Nette\Bridges\FormsLatte\Runtime', 'renderFormBegin']
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\AbstractType':
|
||||
'setDefaultOptions': 'configureOptions'
|
||||
'Nette\Utils\Html':
|
||||
'add': 'addHtml'
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\FormMacros':
|
||||
'renderFormBegin': ['Nette\Bridges\FormsLatte\Runtime', 'renderFormBegin']
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\Rector\MethodCall\StaticMethodNameReplacerRector:
|
||||
$perClassOldToNewMethods:
|
||||
'Nette\Utils\Html':
|
||||
add: 'addHtml'
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\FormMacros':
|
||||
renderFormBegin: ['Nette\Bridges\FormsLatte\Runtime', 'renderFormBegin']
|
||||
'Nette\Utils\Html':
|
||||
add: 'addHtml'
|
||||
'Rector\Tests\Rector\MethodCall\MethodNameReplacerRector\Source\FormMacros':
|
||||
renderFormBegin: ['Nette\Bridges\FormsLatte\Runtime', 'renderFormBegin']
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\Rector\Namespace_\NamespaceReplacerRector:
|
||||
$oldToNewNamespaces:
|
||||
'OldNamespace': 'NewNamespace'
|
||||
'OldNamespaceWith\OldSplitNamespace': 'NewNamespaceWith\NewSplitNamespace'
|
||||
'Old\Long\AnyNamespace': 'Short\AnyNamespace'
|
||||
'PHPUnit_Framework_': 'PHPUnit\Framework\'
|
||||
'OldNamespace': 'NewNamespace'
|
||||
'OldNamespaceWith\OldSplitNamespace': 'NewNamespaceWith\NewSplitNamespace'
|
||||
'Old\Long\AnyNamespace': 'Short\AnyNamespace'
|
||||
'PHPUnit_Framework_': 'PHPUnit\Framework\'
|
||||
|
@ -1,5 +1,4 @@
|
||||
services:
|
||||
Rector\Rector\Property\PropertyNameReplacerRector:
|
||||
$perClassOldToNewProperties:
|
||||
'SomeClass':
|
||||
'oldProperty': 'newProperty'
|
||||
'SomeClass':
|
||||
'oldProperty': 'newProperty'
|
||||
|
@ -1,14 +1,13 @@
|
||||
services:
|
||||
Rector\Rector\Property\PropertyToMethodRector:
|
||||
$perClassPropertyToMethods:
|
||||
'Rector\Tests\Rector\Property\PropertyToMethodRector\Source\Translator':
|
||||
'locale':
|
||||
'get': 'getLocale'
|
||||
'set': 'setLocale'
|
||||
'Rector\Tests\Rector\Property\PropertyToMethodRector\Source\Translator':
|
||||
'locale':
|
||||
'get': 'getLocale'
|
||||
'set': 'setLocale'
|
||||
|
||||
'Rector\Tests\Rector\Property\PropertyToMethodRector\Wrong\SomeClassWithParameters':
|
||||
'parameter':
|
||||
'get':
|
||||
method: 'getConfig'
|
||||
arguments:
|
||||
- 'parameter'
|
||||
'Rector\Tests\Rector\Property\PropertyToMethodRector\Wrong\SomeClassWithParameters':
|
||||
'parameter':
|
||||
'get':
|
||||
method: 'getConfig'
|
||||
arguments:
|
||||
- 'parameter'
|
||||
|
@ -1,4 +1,3 @@
|
||||
services:
|
||||
Rector\Rector\StaticCall\StaticCallToFunctionRector:
|
||||
$staticCallToFunction:
|
||||
Rector\Tests\Rector\StaticCall\StaticCallToFunctionRector\Source\SomeOldStaticClass::render: 'view'
|
||||
Rector\Tests\Rector\StaticCall\StaticCallToFunctionRector\Source\SomeOldStaticClass::render: 'view'
|
||||
|
@ -1,9 +1,8 @@
|
||||
services:
|
||||
Rector\Rector\Typehint\ParentTypehintedArgumentRector:
|
||||
$typehintForArgumentByMethodAndClass:
|
||||
Rector\Tests\Rector\Typehint\ParentTypehintedArgumentRector\Source\ParserInterface:
|
||||
parse:
|
||||
code: 'string'
|
||||
Rector\Tests\Rector\Typehint\ParentTypehintedArgumentRector\Source\ClassMetadataFactory:
|
||||
setEntityManager:
|
||||
em: 'Doctrine\ORM\EntityManagerInterface'
|
||||
Rector\Tests\Rector\Typehint\ParentTypehintedArgumentRector\Source\ParserInterface:
|
||||
parse:
|
||||
code: 'string'
|
||||
Rector\Tests\Rector\Typehint\ParentTypehintedArgumentRector\Source\ClassMetadataFactory:
|
||||
setEntityManager:
|
||||
em: 'Doctrine\ORM\EntityManagerInterface'
|
||||
|
@ -1,8 +1,7 @@
|
||||
services:
|
||||
Rector\Rector\Typehint\ReturnTypehintRector:
|
||||
$typehintForMethodByClass:
|
||||
'SomeNamespace\SomeClass':
|
||||
'parse': 'array'
|
||||
'resolve': 'SomeType'
|
||||
'nullable': '?SomeType'
|
||||
'clear': ''
|
||||
'SomeNamespace\SomeClass':
|
||||
'parse': 'array'
|
||||
'resolve': 'SomeType'
|
||||
'nullable': '?SomeType'
|
||||
'clear': ''
|
||||
|
@ -1,7 +1,6 @@
|
||||
services:
|
||||
Rector\Rector\Visibility\ChangeConstantVisibilityRector:
|
||||
$constantToVisibilityByClass:
|
||||
'Rector\Tests\Rector\Visibility\ChangeConstantVisibilityRector\Source\ParentObject':
|
||||
'TO_BE_PUBLIC_CONSTANT': 'public'
|
||||
'TO_BE_PROTECTED_CONSTANT': 'protected'
|
||||
'TO_BE_PRIVATE_CONSTANT': 'private'
|
||||
'Rector\Tests\Rector\Visibility\ChangeConstantVisibilityRector\Source\ParentObject':
|
||||
'TO_BE_PUBLIC_CONSTANT': 'public'
|
||||
'TO_BE_PROTECTED_CONSTANT': 'protected'
|
||||
'TO_BE_PRIVATE_CONSTANT': 'private'
|
||||
|
@ -1,8 +1,7 @@
|
||||
services:
|
||||
Rector\Rector\Visibility\ChangeMethodVisibilityRector:
|
||||
$methodToVisibilityByClass:
|
||||
'Rector\Tests\Rector\Visibility\ChangeMethodVisibilityRector\Source\ParentObject':
|
||||
'toBePublicMethod': 'public'
|
||||
'toBeProtectedMethod': 'protected'
|
||||
'toBePrivateMethod': 'private'
|
||||
'toBePublicStaticMethod': 'public'
|
||||
'Rector\Tests\Rector\Visibility\ChangeMethodVisibilityRector\Source\ParentObject':
|
||||
'toBePublicMethod': 'public'
|
||||
'toBeProtectedMethod': 'protected'
|
||||
'toBePrivateMethod': 'private'
|
||||
'toBePublicStaticMethod': 'public'
|
||||
|
@ -1,8 +1,7 @@
|
||||
services:
|
||||
Rector\Rector\Visibility\ChangePropertyVisibilityRector:
|
||||
$propertyToVisibilityByClass:
|
||||
'Rector\Tests\Rector\Visibility\ChangePropertyVisibilityRector\Source\ParentObject':
|
||||
'toBePublicProperty': 'public'
|
||||
'toBeProtectedProperty': 'protected'
|
||||
'toBePrivateProperty': 'private'
|
||||
'toBePublicStaticProperty': 'public'
|
||||
'Rector\Tests\Rector\Visibility\ChangePropertyVisibilityRector\Source\ParentObject':
|
||||
'toBePublicProperty': 'public'
|
||||
'toBeProtectedProperty': 'protected'
|
||||
'toBePrivateProperty': 'private'
|
||||
'toBePublicStaticProperty': 'public'
|
||||
|
Loading…
x
Reference in New Issue
Block a user