Exemplo n.º 1
0
 /**
  * Return the specified data source for the current module.
  *
  * @param \Symfony\Component\HttpFoundation\Request $request The actionKernel request we are
  * processing
  * @param string $key The key specified in the <data-source> element for
  * the requested data source
  * @return object
  * @throws \Exception
  */
 protected function getDataSource(Request $request, $key)
 {
     try {
         return $this->actionKernel->getDataSource($request, $key);
     } catch (\Exception $e) {
         // Log
         throw $e;
     }
 }