for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Sylius package.
*
* (c) Paweł Jędrzejewski
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Sylius\Bundle\CoreBundle\Provider;
use Sylius\Bundle\SettingsBundle\Model\Settings;
use Sylius\Component\Core\Provider\DefaultTaxZoneProviderInterface;
/**
* @author Mateusz Zalewski <[email protected]>
class DefaultTaxZoneProvider implements DefaultTaxZoneProviderInterface
{
* @var Settings
private $settings;
* @param Settings $settings
public function __construct(Settings $settings)
$this->settings = $settings;
}
* {@inheritdoc}
public function getZone()
if ($this->settings->has('default_tax_zone')) {
return $this->settings->get('default_tax_zone');
return null;