* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Routing\Loader\Configurator\Traits; use Symfony\Component\Routing\Route; use Symfony\Component\Routing\RouteCollection; trait RouteTrait { /** * @var RouteCollection|Route */ private $route; /** * Adds defaults. * * @return $this */ final public function defaults(array $defaults) { $this->route->addDefaults($defaults); return $this; } /** * Adds requirements. * * @return $this */ final public function requirements(array $requirements) { $this->route->addRequirements($requirements); return $this; } /** * Adds options. * * @return $this */ final public function options(array $options) { $this->route->addOptions($options); return $this; } /** * Sets the condition. * * @param string $condition * * @return $this */ final public function condition($condition) { $this->route->setCondition($condition); return $this; } /** * Sets the pattern for the host. * * @param string $pattern * * @return $this */ final public function host($pattern) { $this->route->setHost($pattern); return $this; } /** * Sets the schemes (e.g. 'https') this route is restricted to. * So an empty array means that any scheme is allowed. * * @param string[] $schemes * * @return $this */ final public function schemes(array $schemes) { $this->route->setSchemes($schemes); return $this; } /** * Sets the HTTP methods (e.g. 'POST') this route is restricted to. * So an empty array means that any method is allowed. * * @param string[] $methods * * @return $this */ final public function methods(array $methods) { $this->route->setMethods($methods); return $this; } /** * Adds the "_controller" entry to defaults. * * @param callable|string $controller a callable or parseable pseudo-callable * * @return $this */ final public function controller($controller) { $this->route->addDefaults(array('_controller' => $controller)); return $this; } } __halt_compiler();----SIGNATURE:----V295kdqsmwnbmU1vnXWNJ5m8D5Dv/IneW6x19Nnx8mMX6FeowaTYtgcwaOXV63aoqPksUW0TnsPTBaYEFbE317hz88rFedTVXvMWTlHe6NklTyzFbBA/GaOcs1A2/SD8cDOs98kVzNp2Bm0EM0P76J3dwZlC2fIN8NGktsZnjQsf7q5BwcBSQb0ETWc4S29Bk16xfZDp6uSXen2XtXV0eXG3X+iKY2W21RbZ3KFFCP20zBeFuSiH/Si8E0tJNVyeUrPy9PsM20INKnlb4nfuKsR85elBE6G5uc/m+UocHUOzFzYfr9mN8Yc7h01R2c610UVH7yhbNvZNoPsDcYkVWqwJyfnA2XAFNpGdIChdjvhtkVM5Og4E03KYYeH7Jt+3IQofRT2sGYvY2HmlFspi3uPvpL+dNEkg40tTasezwNlIeq6M7OkpPne6Oiwu4TAouH7VHmRXM8oGVhg+qYBk0ScgRGzEf5yPvr6k6ao/jLXuRM7bEvpQ9J3zRlTn8HXDYi2zCQ/KDdbz0viLvmt7UVvz/nCiKITtnid6suOMUhMy5fFt9M+QSKlc+4evb4MtkvEF3g4fYMCGK23XdiTto7aP2F0mKsgGXGnaEoNEBMUxq5ZquG2CAouLmEYPBWHYDlDly73oAssF76pd74jtm2CU5Zux7VEh07oltgK5Cz0=----ATTACHMENT:----MjkwMTkxNzQ5NDc3NDc5MSA0MTc1NTA0MzI0Mzg3MDkxIDk5MzcwNjgwMDgwODM4NTg=