protected function buildAttributesResolver(ItemInterface $templateItem)
    {
        $resolver = new AttributesResolver();
        $resolver->setDefault('taxonomy_attribute', 'categories', 'string')
            ->setDefault('permalink', '/:name')
            ->setDefault('pagination_permalink', '/page:num', 'string');

        $attributes = $templateItem->getAttributes();

        return $resolver->resolve($attributes);
    }
protected function buildAttributesResolver(ItemInterface $templateItem)
    {
        $resolver = new AttributesResolver();
        $resolver->setDefault('taxonomy_attribute', 'categories', 'string')
            ->setDefault('permalink', '/:name')
            ->setDefault('pagination_permalink', '/page:num', 'string');

        $attributes = $templateItem->getAttributes();

        return $resolver->resolve($attributes);
    }
protected function buildAttributesResolver ( ItemInterface $ templateItem ) { $ resolver = new AttributesResolver ( ) ; $ resolver -> setDefault ( 'taxonomy_attribute' , 'categories' , 'string' ) -> setDefault ( 'permalink' , '/:name' ) -> setDefault ( 'pagination_permalink' , '/page:num' , 'string' ) ; $ attributes = $ templateItem -> getAttributes ( ) ; return $ resolver -> resolve ( $ attributes ) ; }
Build the attribute resolver.

@param ItemInterface $templateItem The item used as template

@return AttributesResolver
Build the attribute resolver .