Skip to content

Commit 38cee0d

Browse files
authored
Merge pull request #109 from koriym/doc-bindings
Document the bindings provided by modules
2 parents 44be4ea + bdd216b commit 38cee0d

7 files changed

Lines changed: 82 additions & 0 deletions

src/CacheVersionModule.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
use Ray\Di\AbstractModule;
88
use Ray\PsrCacheModule\CacheNamespaceModule;
99

10+
/**
11+
* Provides CacheNamespace and derived bindings
12+
*
13+
* The following module is installed:
14+
*
15+
* -CacheNamespaceModule
16+
*/
1017
final class CacheVersionModule extends AbstractModule
1118
{
1219
/** @var string */

src/CacheableModule.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,16 @@
1212
use BEAR\Sunday\Extension\Transfer\HttpCacheInterface;
1313
use Ray\Di\AbstractModule;
1414

15+
/**
16+
* Provides HttpCacheInterface and derived bindings
17+
*
18+
* The following bindings are provided:
19+
*
20+
* HttpCacheInterface
21+
* -Commands
22+
* RefreshInterceptor
23+
* StorageExpiryModule
24+
*/
1525
final class CacheableModule extends AbstractModule
1626
{
1727
/**

src/DevEtagModule.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@
66

77
use Ray\Di\AbstractModule;
88

9+
/**
10+
* Provides EtagSetterInterface and derived bindings
11+
*
12+
* The following module is installed:
13+
*
14+
* EtagSetterInterface
15+
*/
916
final class DevEtagModule extends AbstractModule
1017
{
1118
/**

src/DonutCacheModule.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,25 @@
1010
use Ray\Di\AbstractModule;
1111
use Ray\Di\Scope;
1212

13+
/**
14+
* Provides ResourceStorageInterface and derived bindings
15+
*
16+
* The following bindings are provided:
17+
*
18+
* HeaderSetter
19+
* CdnCacheControlHeaderSetterInterface
20+
* DonutRepositoryInterface
21+
* RepositoryLoggerInterface
22+
* PurgerInterface
23+
* UriTagInterface
24+
*
25+
* The following interceptors are provided:
26+
*
27+
* DonutCacheableResponseInterceptor
28+
* DonutCacheInterceptor
29+
* DonutCommandInterceptor
30+
* DonutCacheInterceptor
31+
*/
1332
final class DonutCacheModule extends AbstractModule
1433
{
1534
/**

src/MobileEtagModule.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
use Ray\Di\AbstractModule;
88
use Ray\Di\Scope;
99

10+
/**
11+
* Provides EtagSetterInterface
12+
*
13+
* The following bindings are provided:
14+
*
15+
* EtagSetterInterface
16+
*/
1017
final class MobileEtagModule extends AbstractModule
1118
{
1219
/**

src/QueryRepositoryModule.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,27 @@
1313
use Ray\PsrCacheModule\Annotation\Shared;
1414
use Symfony\Component\Cache\Adapter\NullAdapter;
1515

16+
/**
17+
* Provides ResourceStorageInterface and derived bindings
18+
*
19+
* The following bindings are provided:
20+
*
21+
* CacheItemPoolInterface-Shared::class
22+
* CacheItemPoolInterface-EtagPool::class
23+
* QueryRepositoryInterface
24+
* CacheDependencyInterface
25+
* EtagSetterInterface
26+
* NamedParameterInterface
27+
* ResourceStorageInterface
28+
* MatchQueryInterface
29+
* UriTag
30+
* MatchQueryInterface
31+
*
32+
* The following module are installed.
33+
*
34+
* CacheableModule
35+
* DonutCacheModule
36+
*/
1637
final class QueryRepositoryModule extends AbstractModule
1738
{
1839
/**

src/StorageRedisModule.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,17 @@
1212
use Ray\PsrCacheModule\Psr6RedisModule;
1313
use Symfony\Component\Cache\Adapter\RedisAdapter;
1414

15+
/**
16+
* Provides ResourceStorageInterface and derived bindings
17+
*
18+
* The following bindings are provided:
19+
*
20+
* CacheItemPoolInterface-EtagPool::class
21+
*
22+
* The following module are installed:
23+
*
24+
* Psr6RedisModule
25+
*/
1526
final class StorageRedisModule extends AbstractModule
1627
{
1728
/** @var string */

0 commit comments

Comments
 (0)