Skip to content

Commit

Permalink
Cleanup the Data Provider and CRUD Handler APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Nov 13, 2018
1 parent 5464d5b commit f808610
Show file tree
Hide file tree
Showing 16 changed files with 407 additions and 357 deletions.
33 changes: 33 additions & 0 deletions Classes/DataProvider/ClassLoadingInterface.php
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);
}
Loading

0 comments on commit f808610

Please sign in to comment.