Additional supported options are:
* add_format_pattern: When set, ".{_format}" is appended to the route pattern.
Also implicitly sets a default/require on "_format" to "html".
* add_locale_pattern: When set, "/{_locale}" is prepended to the route pattern.
public __construct ( array $options = [] ) | ||
$options | array |
/** * PHPCR id can not end on '/', so we need an additional option for a * trailing slash. * * Additional supported option is: * * * add_trailing_slash: When set, a trailing slash is appended to the route */ public function __construct(array $options = array()) { parent::__construct($options); $this->children = new ArrayCollection(); }
public function __construct() { $this->articles = new ArrayCollection(); $this->children = new ArrayCollection(); parent::__construct(); }