| @@ 31-39 (lines=9) @@ | ||
| 28 | /** |
|
| 29 | * {@inheritDoc} |
|
| 30 | */ |
|
| 31 | public function loadClassMetadataFromCache(\ReflectionClass $class) |
|
| 32 | { |
|
| 33 | $path = $this->dir.'/'.strtr($class->name, '\\', '-').'.cache.php'; |
|
| 34 | if (!file_exists($path)) { |
|
| 35 | return null; |
|
| 36 | } |
|
| 37 | ||
| 38 | return include $path; |
|
| 39 | } |
|
| 40 | ||
| 41 | /** |
|
| 42 | * {@inheritDoc} |
|
| @@ 64-70 (lines=7) @@ | ||
| 61 | /** |
|
| 62 | * {@inheritDoc} |
|
| 63 | */ |
|
| 64 | public function evictClassMetadataFromCache(\ReflectionClass $class) |
|
| 65 | { |
|
| 66 | $path = $this->dir.'/'.strtr($class->name, '\\', '-').'.cache.php'; |
|
| 67 | if (file_exists($path)) { |
|
| 68 | unlink($path); |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| 72 | /** |
|
| 73 | * @param ClassMetadata $metadata |
|