| @@ 26-34 (lines=9) @@ | ||
| 23 | /** |
|
| 24 | * {@inheritDoc} |
|
| 25 | */ |
|
| 26 | public function loadClassMetadataFromCache(\ReflectionClass $class) |
|
| 27 | { |
|
| 28 | $path = $this->dir.'/'.strtr($class->name, '\\', '-').'.cache.php'; |
|
| 29 | if (!file_exists($path)) { |
|
| 30 | return null; |
|
| 31 | } |
|
| 32 | ||
| 33 | return include $path; |
|
| 34 | } |
|
| 35 | ||
| 36 | /** |
|
| 37 | * {@inheritDoc} |
|
| @@ 76-82 (lines=7) @@ | ||
| 73 | /** |
|
| 74 | * {@inheritDoc} |
|
| 75 | */ |
|
| 76 | public function evictClassMetadataFromCache(\ReflectionClass $class) |
|
| 77 | { |
|
| 78 | $path = $this->dir.'/'.strtr($class->name, '\\', '-').'.cache.php'; |
|
| 79 | if (file_exists($path)) { |
|
| 80 | unlink($path); |
|
| 81 | } |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||