Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FoundationBundle] removed the request.base_path parameter (the DIC c…
…an now be immutable)
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
src/Symfony/Framework/FoundationBundle/Helper/AssetsHelper.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
namespace Symfony\Framework\FoundationBundle\Helper; | ||
|
||
use Symfony\Components\HttpKernel\Request; | ||
use Symfony\Components\Templating\Helper\AssetsHelper as BaseAssetsHelper; | ||
|
||
/* | ||
* This file is part of the Symfony package. | ||
* | ||
* (c) Fabien Potencier <fabien.potencier@symfony-project.com> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
/** | ||
* AssetsHelper is the base class for all helper classes that manages assets. | ||
* | ||
* @package Symfony | ||
* @subpackage Framework_FoundationBundle | ||
* @author Fabien Potencier <fabien.potencier@symfony-project.com> | ||
*/ | ||
class AssetsHelper extends BaseAssetsHelper | ||
{ | ||
/** | ||
* Constructor. | ||
* | ||
* @param Symfony\Components\HttpKernel\Request $request A Request instance | ||
* @param string|array $baseURLs The domain URL or an array of domain URLs | ||
* @param string $version The version | ||
*/ | ||
public function __construct(Request $request, $baseURLs = array(), $version = null) | ||
{ | ||
parent::__construct($request->getBasePath(), $baseURLs, $version); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters