Removing IndexAction from Event controller

This commit is contained in:
Marc Ducobu 2016-03-24 17:39:01 +01:00
parent 6776e785b2
commit fdb2c094a6
2 changed files with 0 additions and 19 deletions

View File

@ -19,21 +19,6 @@ use Symfony\Component\Form\Extension\Core\Type\HiddenType;
*/
class EventController extends Controller
{
/**
* Lists all Event entities.
*
*/
public function indexAction()
{
$em = $this->getDoctrine()->getManager();
$entities = $em->getRepository('ChillEventBundle:Event')->findAll();
return $this->render('ChillEventBundle:Event:index.html.twig', array(
'entities' => $entities,
));
}
public function mostRecentIndexAction()
{

View File

@ -1,7 +1,3 @@
event:
path: /
defaults: { _controller: "ChillEventBundle:Event:index" }
chill_event_list_most_recent:
path: most_recent
defaults: { _controller: "ChillEventBundle:Event:mostRecentIndex" }