コード例 #1
0
 /**
  * @param string                       $token
  * @param RouterInterface              $router
  * @param BlockRendererInterface       $blockRenderer
  * @param BlockContextManagerInterface $contextManager   Block Context manager
  * @param array                        $managers
  */
 public function __construct($token, RouterInterface $router, BlockRendererInterface $blockRenderer, BlockContextManagerInterface $contextManager, array $managers = array())
 {
     parent::__construct($token, $router, null);
     $this->managers = $managers;
     $this->blockRenderer = $blockRenderer;
     $this->contextManager = $contextManager;
 }
コード例 #2
0
 /**
  * @param string                       $token
  * @param RouterInterface              $router
  * @param BlockRendererInterface       $blockRenderer
  * @param BlockLoaderInterface         $blockLoader
  * @param BlockContextManagerInterface $blockContextManager
  */
 public function __construct($token, RouterInterface $router, BlockRendererInterface $blockRenderer, BlockLoaderInterface $blockLoader, BlockContextManagerInterface $blockContextManager)
 {
     parent::__construct($token, $router, null);
     $this->blockRenderer = $blockRenderer;
     $this->blockLoader = $blockLoader;
     $this->blockContextManager = $blockContextManager;
 }