Skip to content

Instantly share code, notes, and snippets.

@metalvarez
Last active December 28, 2015 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metalvarez/7473506 to your computer and use it in GitHub Desktop.
Save metalvarez/7473506 to your computer and use it in GitHub Desktop.
InitializableControllerInterface for symfony2
<?php
namespace Acme\CommonsBundle\Model\Controller;
/**
* Interface to set a preAction method to controllers
*
* @author Víctor Hugo Álvarez <metalvarez@gmail.com>
*/
interface InitializableControllerInterface
{
/**
* initialize method preAction callback
*
*/
public function initialize();
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment