Skip to content

Commit

Permalink
Merge pull request #183 from alexdebril/issue/fix-deprecation
Browse files Browse the repository at this point in the history
Use `AbstractController` instead of `Controller`
  • Loading branch information
alexdebril authored Jul 25, 2019
2 parents 0516df4 + a298c40 commit 1ce655e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Controller/StreamController.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@

use FeedIo\FeedIo;
use FeedIo\FeedInterface;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Debril\RssAtomBundle\Provider\FeedContentProviderInterface;
use Debril\RssAtomBundle\Exception\FeedException\FeedNotFoundException;

/**
* Class StreamController.
*/
class StreamController extends Controller
class StreamController extends AbstractController
{

/**
Expand Down Expand Up @@ -156,15 +156,15 @@ protected function getContent(array $options, FeedContentProviderInterface $prov
*/
protected function mustForceRefresh() : bool
{
return $this->container->getParameter('debril_rss_atom.force_refresh');
return $this->getParameter('debril_rss_atom.force_refresh');
}

/**
* @return boolean true if the feed must be private
*/
protected function isPrivate() : bool
{
return $this->container->getParameter('debril_rss_atom.private_feeds');
return $this->getParameter('debril_rss_atom.private_feeds');
}

}
4 changes: 4 additions & 0 deletions Resources/config/services.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ parameters:
debril.provider.doctrine.class: Debril\RssAtomBundle\Provider\DoctrineFeedContentProvider

services:
_defaults:
autowire: true
autoconfigure: true

guzzle.client:
class: GuzzleHttp\Client

Expand Down

0 comments on commit 1ce655e

Please sign in to comment.