mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-24 19:53:14 +01:00
19 lines
786 B
YAML
19 lines
786 B
YAML
# see: https://laravel.com/docs/5.0/upgrade
|
|
services:
|
|
Rector\Renaming\Rector\Class_\RenameClassRector:
|
|
$oldToNewClasses:
|
|
Illuminate\Cache\CacheManager: 'Illuminate\Contracts\Cache\Repository'
|
|
# https://stackoverflow.com/a/24949656/1348344
|
|
Illuminate\Database\Eloquent\SoftDeletingTrait: 'Illuminate\Database\Eloquent\SoftDeletes'
|
|
|
|
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
|
|
$oldToNewMethodsByClass:
|
|
Illuminate\Contracts\Pagination\Paginator:
|
|
links: 'render'
|
|
getFrom: 'firstItem'
|
|
getTo: 'lastItem'
|
|
getPerPage: 'perPage'
|
|
getCurrentPage: 'currentPage'
|
|
getLastPage: 'lastPage'
|
|
getTotal: 'total'
|