PHP Class Newscoop\GimmeBundle\EventListener\PaginationListener

Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$paginatorService Newscoop\Gimme\PaginatorService Paginator service object
$session Symfony\Component\HttpFoundation\Session\Session Session object

Public Methods

Method Description
__construct ( PaginatorService $paginatorService ) Construct PaginationListener object
onRequest ( GetResponseEvent $event ) Get data from request and create Pagination and PartialResponse events.

Method Details

__construct() public method

Construct PaginationListener object
public __construct ( PaginatorService $paginatorService )
$paginatorService Newscoop\Gimme\PaginatorService PaginationService object

onRequest() public method

Get data from request and create Pagination and PartialResponse events.
public onRequest ( GetResponseEvent $event )
$event Symfony\Component\HttpKernel\Event\GetResponseEvent Event object with request

Property Details

$paginatorService protected property

Paginator service object
protected PaginatorService,Newscoop\Gimme $paginatorService
return Newscoop\Gimme\PaginatorService

$session protected property

Session object
protected Session,Symfony\Component\HttpFoundation\Session $session
return Symfony\Component\HttpFoundation\Session\Session