__construct() public method

Create a new Redirector instance.
public __construct ( UrlGenerator $generator ) : void
$generator UrlGenerator
return void
Example #1
0
 /**
  * Create a new Redirector instance.
  *
  * @param  \LiveCMS\Routing\UrlGenerator  $generator
  * @return void
  */
 public function __construct(UrlGenerator $generator)
 {
     parent::__construct($generator);
 }
Example #2
0
 public function __construct(UrlGenerator $generator, Translator $translator)
 {
     parent::__construct($generator);
     $this->translator = $translator;
 }
Example #3
0
 public function __construct(UrlGenerator $generator, Config $config)
 {
     parent::__construct($generator);
     $this->sessionKey = $config->get('save-url.session-key');
 }