This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding a new SelfCheckingAsseticResource for compat with 2.8-3.0+
In 2.8, the SelfCheckingResourceInterface becomes available and you must implement it for 3.0. An if statement either uses the old AsseticResource (which does not include this interface) or the new SelfCheckingAsseticResource if the interface exists.
- Loading branch information
1 parent
d885ec8
commit 49c7279
Showing
2 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
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,25 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the Symfony framework. | ||
* | ||
* (c) Fabien Potencier <[email protected]> | ||
* | ||
* This source file is subject to the MIT license that is bundled | ||
* with this source code in the file LICENSE. | ||
*/ | ||
|
||
namespace Symfony\Bundle\AsseticBundle\Config; | ||
|
||
use Symfony\Component\Config\Resource\SelfCheckingResourceInterface; | ||
|
||
/** | ||
* Implements SelfCheckingResourceInterface required in Symfony 3.0. | ||
* | ||
* @author Ryan Weaver <[email protected]> | ||
* | ||
* @internal | ||
*/ | ||
class SelfCheckingAsseticResource extends AsseticResource implements SelfCheckingResourceInterface | ||
{ | ||
} |
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