for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* (c) FSi sp. z o.o. <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
declare(strict_types=1);
namespace FSi\Bundle\AdminBundle\Event;
use FSi\Bundle\AdminBundle\Admin\Element;
use FSi\Component\DataGrid\DataGridInterface;
use FSi\Component\DataSource\DataSourceInterface;
use Symfony\Component\HttpFoundation\Request;
class ListEvent extends AdminEvent
{
* @var DataSourceInterface
protected $dataSource;
* @var DataGridInterface
protected $dataGrid;
public function __construct(
Element $element,
Request $request,
DataSourceInterface $dataSource,
DataGridInterface $dataGrid
) {
parent::__construct($element, $request);
$this->dataSource = $dataSource;
$this->dataGrid = $dataGrid;
}
public function getDataSource(): DataSourceInterface
return $this->dataSource;
public function getDataGrid(): DataGridInterface
return $this->dataGrid;