Skip to content

Commit

Permalink
Use AbstractController if possible
Browse files Browse the repository at this point in the history
Fixes #76
  • Loading branch information
alexislefebvre committed Jun 2, 2019
1 parent 699bb8c commit 9fbb19a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Controller/DefaultController.php
Expand Up @@ -10,6 +10,11 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Session\Session;

// Compatibility layer for Symfony 3.4
if (class_exists('Symfony\Bundle\FrameworkBundle\Controller\AbstractController')) {
class_alias('Symfony\Bundle\FrameworkBundle\Controller\AbstractController', 'Symfony\Bundle\FrameworkBundle\Controller\Controller');
}

class DefaultController extends Controller
{
/** @var TweetRepository */
Expand Down

0 comments on commit 9fbb19a

Please sign in to comment.