File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
Tests/DependencyInjection Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,12 @@ protected function getOptions(): array
79
79
return [];
80
80
}
81
81
82
- /**
83
- * @return SurrogateInterface
84
- */
85
- protected function createSurrogate ()
82
+ protected function createSurrogate (): SurrogateInterface
86
83
{
87
84
return $ this ->surrogate ?? new Esi ();
88
85
}
89
86
90
- /**
91
- * @return StoreInterface
92
- */
93
- protected function createStore ()
87
+ protected function createStore (): StoreInterface
94
88
{
95
89
return $ this ->store ?? new Store ($ this ->cacheDir ?: $ this ->kernel ->getCacheDir ().'/http_cache ' );
96
90
}
Original file line number Diff line number Diff line change 14
14
use Doctrine \Common \Annotations \Annotation ;
15
15
use Psr \Cache \CacheItemPoolInterface ;
16
16
use Psr \Log \LoggerAwareInterface ;
17
+ use Symfony \Bridge \PhpUnit \ExpectDeprecationTrait ;
17
18
use Symfony \Bundle \FrameworkBundle \DependencyInjection \Compiler \AddAnnotationsCachedReaderPass ;
18
19
use Symfony \Bundle \FrameworkBundle \DependencyInjection \FrameworkExtension ;
19
20
use Symfony \Bundle \FrameworkBundle \Tests \Fixtures \Messenger \DummyMessage ;
76
77
77
78
abstract class FrameworkExtensionTest extends TestCase
78
79
{
80
+ use ExpectDeprecationTrait;
81
+
79
82
private static $ containerCache = [];
80
83
81
84
abstract protected function loadFromFile (ContainerBuilder $ container , $ file );
Original file line number Diff line number Diff line change 21
21
"symfony/cache" : " ^5.4|^6.0" ,
22
22
"symfony/config" : " ^5.4|^6.0" ,
23
23
"symfony/dependency-injection" : " ^5.4|^6.0" ,
24
+ "symfony/deprecation-contracts" : " ^2.1" ,
24
25
"symfony/event-dispatcher" : " ^5.4|^6.0" ,
25
26
"symfony/error-handler" : " ^5.4|^6.0" ,
26
27
"symfony/http-foundation" : " ^5.4|^6.0" ,
You can’t perform that action at this time.
0 commit comments