| Total Complexity | 5 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | abstract class AbstractResourceController extends BaseController |
||
| 17 | { |
||
| 18 | protected $resourceRepositoryFactory; |
||
| 19 | |||
| 20 | public function __construct(ResourceFactory $resourceFactory) |
||
| 21 | { |
||
| 22 | $this->resourceRepositoryFactory = $resourceFactory; |
||
| 23 | } |
||
| 24 | |||
| 25 | public function getRepositoryFromRequest(Request $request): ResourceRepository |
||
| 31 | } |
||
| 32 | |||
| 33 | public static function getSubscribedServices(): array |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return Glide |
||
| 44 | */ |
||
| 45 | public function getGlide() |
||
| 46 | { |
||
| 47 | return $this->container->get('glide'); |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return FlysystemStorage |
||
| 52 | */ |
||
| 53 | public function getStorage() |
||
| 56 | } |
||
| 57 | } |
||
| 58 |