rector/config/level/framework-migration/laravel-to-symfony.yml

12 lines
437 B
YAML
Raw Normal View History

2018-03-04 14:24:43 +01:00
services:
Rector\Rector\Dynamic\ClassReplacerRector:
$oldToNewClasses:
'Illuminate\Http\Response': 'Symfony\Component\HttpFoundation\Response'
'App\Http\Controllers\Controller': 'Symfony\Bundle\FrameworkBundle\Controller\Controller'
# view('...') => $this->render('...')
Rector\Rector\Dynamic\FunctionToMethodCallRector:
$functionToMethodCall:
'view': ['this', 'render']