* @copyright 2012-2015 Florian Eckerstorfer * @license http://www.opensource.org/licenses/MIT The MIT License */ class SlugifyExtension extends AbstractExtension { /** @var SlugifyInterface */ private $slugify; /** * Constructor. * * @param SlugifyInterface $slugify * * @codeCoverageIgnore */ public function __construct(SlugifyInterface $slugify) { $this->slugify = $slugify; } /** * Returns the Twig functions of this extension. * * @return TwigFilter[] */ public function getFilters(): array { return [ new TwigFilter('slugify', [$this, 'slugifyFilter']), ]; } /** * Slugify filter. * * @param string $string * @param string|null $separator * * @return string */ public function slugifyFilter($string, $separator = null): string { return $this->slugify->slugify($string, $separator); } /** * get Name * * @return string */ public function getName(): string { return "SlugifyExtension"; } } __halt_compiler();----SIGNATURE:----h4YJUKZv3LwZXrDoDlGm1ak0Y2v4t5zEJSM3c02as0Z/dY+nVVZYtkjQxeolKJoqJ74+16fovfLYqvUZTCoGO45tn5JjnnpUK+JCiyGqb24FwVUckt5kqtqPoo88pSxgaZajYX8lww+wyt68SCEJ6jSM/Bw19ILrOIuzPsnw+9P5S4+OrQVy/gYhSfeqHjWYOIHgg2cR90KKjbSAHgFG2r7akJaTd5mYgbAegpGxmOHIFT3GzRtPK5ZzlFAyX4f/Bz168s09SiFtyKjcb3bUn/sPAq2Q+PwAN1AomKjyhaDaPAu22nlv2sAAVIfGcEKNdHynQhhPboryBG9Nqt9mTuJsFFJG1WGB9aPQIbYxvfdlPp5wa6d73PJsJgHzqbpQBhegLpa2go2oLU+m6WK4Qi5a1b2cQttWWUxT1uIuj4nAahB+AlvAFfJdIiC8p7E7kPrAQV8Rl3pgbtuDvb7mQxDvdH+D4YzoIrdUQIuotJauJm9OdlFFjdxSflQD8pl3CM6Fxs+VjM/t8FqyrZ7daB124h/s3F4C7h/uum8+VckyDsIwh7WEUOYjh/TdS81nqim69reQJxUfXVSdKuke9NoSkh0iBUJqa95c4BLjskxf/AUPui6gg36Wpqh6K38q/dEOazo9W9uT6uarVUdm+RHLTKItLQF0wGUkrFhoenU=----ATTACHMENT:----NjM4NjAxODg3Njc4NTQ4MyA3MDEwMTM2MDY1NDY5MDk0IDY5OTE5NTk2OTI5NzkzMDk=