public function injectDependencies(JSDataTables $dataTable, $dtConfig, Request $request) { return $dataTable->setDtArrayConfig($dtConfig)->setEntityManager($this->app('orm.em'))->setListClause($this->app('js.datatables.list_clause'))->setParams($request->query->all())->setValidator($this->app('validator')); }
public function injectDependencies(JSDataTables $dataTable, $dtConfig) { return $dataTable->setDtArrayConfig($dtConfig)->setEntityManager($this->getServiceLocator()->get('Doctrine\\ORM\\EntityManager'))->setListClause($this->getServiceLocator()->get('ListClause'))->setParams($this->getServiceLocator()->get('Request')->getQuery()->toArray()); }