for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the Spryker Commerce OS.
* For full license information, please view the LICENSE file that was distributed with this source code.
*/
namespace Pyz\Yves\Router;
use Spryker\Client\Kernel\Container;
use Spryker\Yves\Router\RouterConfig as SprykerRouterConfig;
* @method \Spryker\Shared\Router\RouterConfig getSharedConfig()
class RouterConfig extends SprykerRouterConfig
{
* @see \Spryker\Yves\Router\Plugin\RouterEnhancer\LanguagePrefixRouterEnhancerPlugin
*
* @return array<string>
public function getAllowedLanguages(): array
return (new Container())->getLocator()->locale()->client()->getAllowedLanguages();
}
public function getAllowedStores(): array
return (new Container())->getLocator()->storeStorage()->client()->getStoreNames();