PathPackage.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /*
  3. * This file is part of the Symfony package.
  4. *
  5. * (c) Fabien Potencier <fabien@symfony.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. namespace Symfony\Bundle\FrameworkBundle\Templating\Asset;
  11. use Symfony\Component\HttpFoundation\Request;
  12. use Symfony\Component\Templating\Asset\PathPackage as BasePathPackage;
  13. @trigger_error('The Symfony\Bundle\FrameworkBundle\Templating\Asset\PathPackage is deprecated since Symfony 2.7 and will be removed in 3.0. Use the Asset component instead.', E_USER_DEPRECATED);
  14. /**
  15. * The path packages adds a version and a base path to asset URLs.
  16. *
  17. * @author Kris Wallsmith <kris@symfony.com>
  18. *
  19. * @deprecated since 2.7, will be removed in 3.0. Use the Asset component instead.
  20. */
  21. class PathPackage extends BasePathPackage
  22. {
  23. /**
  24. * @param Request $request The current request
  25. * @param string $version The version
  26. * @param string $format The version format
  27. */
  28. public function __construct(Request $request, $version = null, $format = null)
  29. {
  30. parent::__construct($request->getBasePath(), $version, $format);
  31. }
  32. }