-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup the Data Provider and CRUD Handler APIs
- Loading branch information
Showing
16 changed files
with
407 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
|
||
namespace Cundd\Rest\DataProvider; | ||
|
||
use Cundd\Rest\Domain\Model\ResourceType; | ||
|
||
interface ClassLoadingInterface | ||
{ | ||
/** | ||
* Return the domain model repository for the models the given API resource type points to | ||
* | ||
* @param ResourceType $resourceType API resource type to get the repository for | ||
* @return \TYPO3\CMS\Extbase\Persistence\RepositoryInterface | ||
* @throws \LogicException if no repository could be found | ||
*/ | ||
public function getRepositoryForResourceType(ResourceType $resourceType); | ||
|
||
/** | ||
* Return the domain model repository class name for the given API resource type | ||
* | ||
* @param ResourceType $resourceType API resource type to get the repository for | ||
* @return string | ||
*/ | ||
public function getRepositoryClassForResourceType(ResourceType $resourceType); | ||
|
||
/** | ||
* Return the domain model class name for the given API resource type | ||
* | ||
* @param ResourceType $resourceType API resource type to get the repository for | ||
* @return string | ||
*/ | ||
public function getModelClassForResourceType(ResourceType $resourceType); | ||
} |
Oops, something went wrong.