| 1 | <?php |
||
| 16 | class LazyRepositoryFactory |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var \eZ\Publish\API\Repository\Repository |
||
| 20 | */ |
||
| 21 | protected $repository; |
||
| 22 | |||
| 23 | public function __construct(Repository $repository) |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Returns a closure which returns ezpublish.api.repository when called. |
||
| 30 | * |
||
| 31 | * To be used when lazy loading is needed. |
||
| 32 | * |
||
| 33 | * @return \Closure |
||
| 34 | */ |
||
| 35 | public function buildRepository() |
||
| 43 | } |
||
| 44 |