<commit_before><commit_msg>Added breadcrumbs to front controller<commit_after><?php
/*
 * WellCommerce Open-Source E-Commerce Platform
 *
 * This file is part of the WellCommerce package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information,
 * please view the LICENSE file that was distributed with this source code.
 */
namespace WellCommerce\Bundle\CoreBundle\Controller\Front;

use WellCommerce\Bundle\CategoryBundle\Storage\CategoryStorageInterface;
use WellCommerce\Bundle\ClientBundle\Entity\ClientInterface;
use WellCommerce\Bundle\CoreBundle\Controller\AbstractController;
use WellCommerce\Bundle\PageBundle\Storage\Front\PageStorageInterface;
use WellCommerce\Bundle\ProducerBundle\Storage\Front\ProducerStorageInterface;
use WellCommerce\Bundle\ProductBundle\Storage\ProductStorageInterface;
use WellCommerce\Bundle\ProductStatusBundle\Storage\ProductStatusStorageInterface;
use WellCommerce\Component\Breadcrumb\Provider\BreadcrumbProviderInterface;

/**
 * Class AbstractFrontController
 *
 * @author  <NAME> <<EMAIL>>
 */
abstract class AbstractFrontController extends AbstractController implements FrontControllerInterface
{
    protected function getBreadcrumbProvider() : BreadcrumbProviderInterface
    {
        return $this->get('breadcrumb.provider');
    }

    protected function getCategoryStorage() : CategoryStorageInterface
    {
        return $this->get('category.storage');
    }

    protected function getProductStorage() : ProductStorageInterface
    {
        return $this->get('product.storage');
    }

    protected function getProductStatusStorage() : ProductStatusStorageInterface
    {
        return $this->get('product_status.storage');
    }

    protected function getProducerStorage() : ProducerStorageInterface
    {
        return $this->get('producer.storage');
    }
    
    protected function getPageStorage() : PageStorageInterface
    {
        return $this->get('page.storage');
    }
    
    protected function getAuthenticatedClient() : ClientInterface
    {
        return $this->getSecurityHelper()->getAuthenticatedClient();
    }
}
{'fraction_non_alphanumeric': 0.0924964605946201, 'fraction_numerical': 0.0, 'mean_word_length': 4.593667546174142, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 17, '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': '5001781', 'n_tokens_mistral': 539, 'n_tokens_neox': 535, 'n_words': 111}