/** * * @param string $path * @return \Symfony\Component\Finder\Finder */ protected function getFinder($path) { $finder = parent::getFinder($path); $finder->name('/\\AppKernel.php$/'); $finder->files(); return $finder; }
/** * * @return multitype:\SplFileInfo \Symfony\Component\Finder\Finder * \Symfony\Component\HttpFoundation\mixed */ protected function getModel() { // $model = new Model(); $model = parent::getModel(); $model = $model['model']; $request = $this->getRequest(); return array('model' => $model); }
protected function getModel() { $model = parent::getModel(); $model = $model['model']; $request = $this->getRequest(); $kernel = $this->get('kernel'); $cli = $this->getCliApplication(); $commands = $cli->all(); $model['bundles'] = array_keys($kernel->getBundles()); $model['cli'] = $this->getCliApplication(); $model['namespace'] = $this->getRequest()->get('namespace'); $command = $this->getRequest()->get('command'); if (NULL !== $command) { $model['command'] = $cli->get($command); } return array('model' => $model); }