<commit_before><?php
/**
 * RedirectMenuBuilder.php
 *
 * @since 01/02/18
 * @author gseidel
 */

namespace Enhavo\Bundle\ContentBundle\Menu;

use Enhavo\Bundle\AppBundle\Menu\Menu\BaseMenu;

class RedirectMenu extends BaseMenu
{
    public function render(array $options)
    {
        $this->setDefaultOption('icon', $options, 'arrow-long-right');
        $this->setDefaultOption('label', $options, 'redirect.label.redirect');
        $this->setDefaultOption('translationDomain', $options, 'EnhavoContentBundle');
        $this->setDefaultOption('route', $options, 'enhavo_content_redirect_index');
        $this->setDefaultOption('role', $options, 'ROLE_ENHAVO_CONTENT_REDIRECT_INDEX');

        return parent::render($options);
    }

    public function getType()
    {
        return 'redirect';
    }
}<commit_msg>introduce configureOptions to menu types<commit_after><?php
/**
 * RedirectMenuBuilder.php
 *
 * @since 01/02/18
 * @author gseidel
 */

namespace Enhavo\Bundle\ContentBundle\Menu;

use Enhavo\Bundle\AppBundle\Menu\Menu\BaseMenu;
use Symfony\Component\OptionsResolver\OptionsResolver;

class RedirectMenu extends BaseMenu
{
    public function configureOptions(OptionsResolver $resolver)
    {
        parent::configureOptions($resolver);

        $resolver->setDefaults([
            'icon' => 'arrow-long-right',
            'label' => 'redirect.label.redirect',
            'translationDomain' => 'EnhavoContentBundle',
            'route' => 'enhavo_content_redirect_index',
            'role' => 'ROLE_ENHAVO_CONTENT_REDIRECT_INDEX',
        ]);
    }

    public function getType()
    {
        return 'redirect';
    }
}
{'fraction_non_alphanumeric': 0.1322013341419042, 'fraction_numerical': 0.0072771376591873865, 'mean_word_length': 3.4715447154471546, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6397920', 'n_tokens_mistral': 508, 'n_tokens_neox': 497, 'n_words': 81}