Example #1
0
 /**
  * {@inheritdoc}
  */
 public function init(Request $request, array $config = null)
 {
     $this->bag = new Bag();
     $this->request = $request;
     $this->bag->set('request', $this->request);
     $this->bag->set('request_url', $request->getResolver()->getUrl());
     if ($config) {
         $this->config = array_replace($this->config, $config);
     }
 }