Skip to content

Commit 046e757

Browse files
authored
Merge pull request #381 from cakephp/6.x-cleanup-routing
cleanup underscore properties in Routing package
2 parents 24d5bc3 + 50fe528 commit 046e757

1 file changed

Lines changed: 19 additions & 10 deletions

File tree

config/rector/sets/cakephp60.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@
181181
'Cake\Database\ValueBinder' => ['_bindings', '_bindingsCount'],
182182

183183
],
184-
185184
'Datasource' => [
186185
'Cake\Datasource\FactoryLocator' => ['_modelFactories'],
187186
'Cake\Datasource\RulesAwareTrait' => ['_rulesChecker'],
@@ -196,9 +195,7 @@
196195
'_accessors', '_new', '_errors', '_invalid', '_registryAlias', '_hasBeenVisited',
197196
],
198197
],
199-
200198
// There are no properties in the Error package
201-
202199
'Event' => [
203200
'Cake\Event\Decorator\AbstractDecorator' => ['_callable', '_options'],
204201
'Cake\Event\Event' => ['_name', '_subject', '_data', '_stopped'],
@@ -208,12 +205,10 @@
208205
'_generalManager', '_listeners', '_isGlobal', '_eventList', '_trackEvents',
209206
],
210207
],
211-
212208
'Form' => [
213209
'Cake\Form\Schema' => ['_fields', '_fieldDefaults'],
214210
'Cake\Form\Form' => ['_schemaClass', '_schema', '_errors', '_data'],
215211
],
216-
217212
'Http' => [
218213
'Cake\Http\CorsBuilder' => ['_response', '_origin', '_isSsl', '_headers'],
219214
'Cake\Http\Client' => ['_cookies', '_mockAdapter', '_adapter'],
@@ -234,7 +229,6 @@
234229
'Cake\Http\Session\DatabaseSession' => ['_table', '_timeout'],
235230
'Cake\Http\Session\CacheSession' => ['_options'],
236231
],
237-
238232
'I18n' => [
239233
'Cake\I18n\MessagesFileLoader' => ['_name', '_plugin', '_locale', '_extension'],
240234
'Cake\I18n\ChainMessagesLoader' => ['_loaders'],
@@ -248,26 +242,22 @@
248242
'Cake\I18n\Number' => ['_formatters', '_defaultCurrency', '_defaultCurrencyFormat'],
249243
'Cake\I18n\TranslatorRegistry' => ['_loaders', '_defaultFormatter', '_useFallback', '_cacher'],
250244
],
251-
252245
'Log' => [
253246
'Cake\Log\Log' => ['_dirtyConfig', '_levels', '_levelMap'],
254247
'Cake\Log\Engine\ConsoleLog' => ['_output'],
255248
'Cake\Log\Engine\SyslogLog' => ['_open'],
256249
'Cake\Log\Engine\FileLog' => ['_path', '_file', '_size'],
257250
],
258-
259251
'Mailer' => [
260252
'Cake\Mailer\Transport\SmtpTransport' => [
261253
'_socket', '_content', '_lastResponse',
262254
],
263255
],
264-
265256
'Network' => [
266257
'Cake\Network\Socket' => [
267258
'_encryptMethods', '_connectionErrors',
268259
],
269260
],
270-
271261
'ORM' => [
272262
'Cake\ORM\Association' => [
273263
'_name', '_className', '_bindingKey', '_foreignKey', '_conditions',
@@ -321,6 +311,25 @@
321311
'_associations', '_behaviors', '_entityClass', '_registryAlias',
322312
],
323313
],
314+
'Routing' => [
315+
'Cake\Routing\Router' => [
316+
'_defaultRouteClass', '_fullBaseUrl', '_collection', '_requestContext', '_namedExpressions',
317+
'_request', '_initialState', '_urlFilters', '_defaultExtensions', '_routePaths',
318+
],
319+
'Cake\Routing\RouteCollection' => [
320+
'_routeTable', '_named', '_paths', '_middleware', '_middlewareGroups', '_extensions',
321+
],
322+
'Cake\Routing\RouteBuilder' => [
323+
'_resourceMap', '_routeClass', '_extensions',
324+
'_path', '_params', '_namePrefix', '_collection',
325+
],
326+
'Cake\Routing\Route\Route' => [
327+
'_greedy', '_compiledRoute', '_name', '_extensions',
328+
],
329+
'Cake\Routing\Route\DashedRoute' => ['_inflectedDefaults'],
330+
'Cake\Routing\Route\InflectedRoute' => ['_inflectedDefaults'],
331+
'Cake\Routing\Exception\MissingRouteException' => ['_messageTemplateWithMethod'],
332+
],
324333
'Utility' => [
325334
'Cake\Utility\Inflector' => [
326335
'_plural', '_singular', '_irregular', '_uninflected', '_cache', '_initialState',

0 commit comments

Comments
 (0)