|
0
|
1 |
<?php |
|
|
2 |
|
|
|
3 |
/* |
|
|
4 |
* This file is part of the Symfony framework. |
|
|
5 |
* |
|
|
6 |
* (c) Fabien Potencier <fabien@symfony.com> |
|
|
7 |
* |
|
|
8 |
* This source file is subject to the MIT license that is bundled |
|
|
9 |
* with this source code in the file LICENSE. |
|
|
10 |
*/ |
|
|
11 |
|
|
|
12 |
namespace Symfony\Bundle\AsseticBundle\Factory\Resource; |
|
|
13 |
|
|
|
14 |
use Assetic\Factory\Resource\ResourceInterface; |
|
|
15 |
|
|
|
16 |
/** |
|
|
17 |
* A configured resource. |
|
|
18 |
* |
|
|
19 |
* @author Kris Wallsmith <kris@symfony.com> |
|
|
20 |
*/ |
|
|
21 |
class ConfigurationResource implements ResourceInterface |
|
|
22 |
{ |
|
|
23 |
private $formulae; |
|
|
24 |
|
|
|
25 |
public function __construct(array $formulae) |
|
|
26 |
{ |
|
|
27 |
$this->formulae = $formulae; |
|
|
28 |
} |
|
|
29 |
|
|
|
30 |
public function isFresh($timestamp) |
|
|
31 |
{ |
|
|
32 |
return true; |
|
|
33 |
} |
|
|
34 |
|
|
|
35 |
public function getContent() |
|
|
36 |
{ |
|
|
37 |
return $this->formulae; |
|
|
38 |
} |
|
|
39 |
|
|
|
40 |
public function __toString() |
|
|
41 |
{ |
|
|
42 |
return 'symfony'; |
|
|
43 |
} |
|
|
44 |
} |