Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
labelabeille
server
Commits
ea9a89c2
Commit
ea9a89c2
authored
May 07, 2016
by
wilhelmhb
Browse files
interfaces for entity and handler
parent
8001affd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/ApiBundle/Entity/Interfaces/CommonHandlerInterface.php
0 → 100755
View file @
ea9a89c2
<?php
namespace
ApiBundle\Entity\Interfaces
;
/**
* An interface that all the objects should implement.
* In most circumstances, only a single object should implement
* this interface as the ResolveTargetEntityListener can only
* change the target to a single object.
*/
interface
CommonHandlerInterface
{
// List any additional methods that your UserBundle
// will need to access on the subject so that you can
// be sure that you have access to those methods.
/**
* @return string
*/
public
function
get
(
$id
);
/**
* @return string
*/
public
function
post
(
array
$p
);
/**
* Edit a Page, or create if not exist.
*
* @param PageInterface $page
* @param array $parameters
*
* @return PageInterface
*/
public
function
put
(
$page
,
array
$parameters
);
/**
* Partially update a Page.
*
* @param PageInterface $page
* @param array $parameters
*
* @return PageInterface
*/
public
function
patch
(
$page
,
array
$parameters
);
}
?>
src/ApiBundle/Entity/Interfaces/CommonInterface.php
0 → 100755
View file @
ea9a89c2
<?php
namespace
ApiBundle\Entity\Interfaces
;
/**
* An interface that all the other objects should implement.
* In most circumstances, only a single object should implement
* this interface as the ResolveTargetEntityListener can only
* change the target to a single object.
*/
interface
CommonInterface
{
// List any additional methods that your ApiBundle
// will need to access on the subject so that you can
// be sure that you have access to those methods.
}
?>
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment