Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Added names and all to repository interface #31

Merged
merged 1 commit into from
Jul 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Repository/Api/EditableRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ interface EditableRepository extends PuliEditableRepository
*
* @return int
*
* @throws InvalidArgumentException If the sourceQuery is invalid.
* @throws UnsupportedLanguageException If the language is not supported.
* @throws InvalidArgumentException If the sourceQuery is invalid
* @throws UnsupportedLanguageException If the language is not supported
*/
public function move($sourceQuery, $targetPath, $language = 'glob');

Expand Down
2 changes: 1 addition & 1 deletion Repository/Resource/CmfResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function getPayloadType()
/**
* Returns additional, implementation-specific data attached to the resource.
*
* @return mixed The payload of the resource.
* @return mixed The payload of the resource
*/
public function getPayload()
{
Expand Down
18 changes: 17 additions & 1 deletion RepositoryRegistryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,28 @@
*/
interface RepositoryRegistryInterface
{
/**
* Return the names of all the regstered repositories.
*
* @return string[]
*/
public function names();

/**
* Return all repositories.
*
* Keys must be the repository names.
*
* @return ResourceRepository[]
*/
public function all();

/**
* Return the named repository.
*
* @param string $name
*
* @return Puli\Repository\Api\ResourceRepository
* @return ResourceRepository
*/
public function get($repositoryName);

Expand Down