vendor/sylius/sylius/src/Sylius/Bundle/ShippingBundle/Provider/Calendar.php line 16

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Sylius package.
  4.  *
  5.  * (c) Paweł Jędrzejewski
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. declare(strict_types=1);
  11. namespace Sylius\Bundle\ShippingBundle\Provider;
  12. @trigger_error(
  13.     'The "Sylius\Bundle\ShippingBundle\Provider\Calendar" class is deprecated since Sylius 1.11 and will be removed in 2.0. Use "Sylius\Calendar\Provider\Calendar" instead.',
  14.     \E_USER_DEPRECATED,
  15. );
  16. final class Calendar implements DateTimeProvider
  17. {
  18.     public function today(): \DateTimeInterface
  19.     {
  20.         return new \DateTimeImmutable();
  21.     }
  22. }