Skip to content
This repository was archived by the owner on Dec 14, 2024. It is now read-only.

Commit f9f32f5

Browse files
Merge pull request #78 from alexislefebvre/use-AbstractController-if-possible
Use AbstractController if possible
2 parents 47f55bd + 9fbb19a commit f9f32f5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Controller/DefaultController.php

+5
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010
use Symfony\Component\HttpFoundation\Request;
1111
use Symfony\Component\HttpFoundation\Session\Session;
1212

13+
// Compatibility layer for Symfony 3.4
14+
if (class_exists('Symfony\Bundle\FrameworkBundle\Controller\AbstractController')) {
15+
class_alias('Symfony\Bundle\FrameworkBundle\Controller\AbstractController', 'Symfony\Bundle\FrameworkBundle\Controller\Controller');
16+
}
17+
1318
class DefaultController extends Controller
1419
{
1520
/** @var TweetRepository */

0 commit comments

Comments
 (0)