12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?php
-
-
-
- namespace Symfony\Bundle\AsseticBundle\Config;
-
- use Assetic\Factory\Resource\ResourceInterface as AsseticResourceInterface;
- use Symfony\Component\Config\Resource\ResourceInterface as SymfonyResourceInterface;
-
-
- class AsseticResource implements SymfonyResourceInterface
- {
- private $resource;
-
- public function __construct(AsseticResourceInterface $resource)
- {
- $this->resource = $resource;
- }
-
- public function __toString()
- {
- return (string) $this->resource;
- }
-
- public function isFresh($timestamp)
- {
- return $this->resource->isFresh($timestamp);
- }
-
-
-
- public function getResource()
- {
- return $this->resource;
- }
-
- public function exists()
- {
- return true;
- }
-
- public function getId()
- {
- return md5('assetic'.$this->resource);
- }
-
- public function getModificationTime()
- {
- return -1;
- }
-
- public function serialize()
- {
- return serialize($this->resource);
- }
-
- public function unserialize($serialized)
- {
- $this->resource = unserialize($serialized);
- }
- }
|