Commit 5920e7a 1 parent 38b85f4 commit 5920e7a Copy full SHA for 5920e7a
File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change 15
15
16
16
use Rekalogika \Mapper \Mapping \Mapping ;
17
17
use Rekalogika \Mapper \Mapping \MappingFactoryInterface ;
18
- use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
19
18
20
- final class TraceableMappingFactory implements
21
- MappingFactoryInterface,
22
- CacheWarmerInterface
19
+ final class TraceableMappingFactory implements MappingFactoryInterface
23
20
{
24
21
private bool $ mappingCollected = false ;
25
22
@@ -29,20 +26,6 @@ public function __construct(
29
26
) {
30
27
}
31
28
32
- public function isOptional (): bool
33
- {
34
- return $ this ->decorated instanceof CacheWarmerInterface && $ this ->decorated ->isOptional ();
35
- }
36
-
37
- public function warmUp (string $ cacheDir , ?string $ buildDir = null ): array
38
- {
39
- if ($ this ->decorated instanceof CacheWarmerInterface) {
40
- return $ this ->decorated ->warmUp ($ cacheDir , $ buildDir );
41
- }
42
-
43
- return [];
44
- }
45
-
46
29
public function getMapping (): Mapping
47
30
{
48
31
if ($ this ->mappingCollected ) {
You can’t perform that action at this time.
0 commit comments