for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* AnimeDb package.
*
* @author Peter Gribanov <[email protected]>
* @copyright Copyright (c) 2011, Peter Gribanov
* @license http://opensource.org/licenses/GPL-3.0 GPL v3
*/
namespace AnimeDb\Bundle\AppBundle\Event\Widget;
use Symfony\Component\EventDispatcher\Event;
use AnimeDb\Bundle\AppBundle\Service\WidgetsContainer;
* Event thrown when a widgets container get a list of widgets for place.
class Get extends Event
{
* @var WidgetsContainer
protected $container;
* @var string
protected $place;
* @param WidgetsContainer $container
* @param string $place
public function __construct(WidgetsContainer $container, $place)
$this->container = $container;
$this->place = $place;
}
* @return WidgetsContainer
public function getWidgetsContainer()
return $this->container;
* @return string
public function getPlace()
return $this->place;
* Regist widget.
* Controller example:
* AcmeDemoBundle:Welcome:index
* AcmeArticleBundle:Article:show
* @param string $controller
* @return bool
public function registr($controller)
return $this->container->registr($this->place, $controller);
public function unregistr($controller)
return $this->container->unregistr($this->place, $controller);