Skip to content

Commit 9d371d5

Browse files
committed
test: extract custom classes
1 parent f436aa1 commit 9d371d5

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
namespace Example\App;
3+
4+
use Gt\DomTemplate\BindableCache;
5+
6+
class CustomBindableCache extends BindableCache {}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
namespace Example\App;
3+
4+
use Gt\Config\Config;
5+
use Gt\DomTemplate\BindableCache;
6+
use Gt\ServiceContainer\Container;
7+
8+
class CustomServiceLoader {
9+
public function __construct(
10+
private readonly Config $config,
11+
private readonly Container $container,
12+
) {}
13+
14+
public function loadBindableCache():BindableCache {
15+
return new CustomBindableCache();
16+
}
17+
}

0 commit comments

Comments
 (0)