Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
server
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
labelabeille
server
Commits
ea9a89c2
Commit
ea9a89c2
authored
May 07, 2016
by
wilhelmhb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
interfaces for entity and handler
parent
8001affd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
0 deletions
+62
-0
src/ApiBundle/Entity/Interfaces/CommonHandlerInterface.php
src/ApiBundle/Entity/Interfaces/CommonHandlerInterface.php
+46
-0
src/ApiBundle/Entity/Interfaces/CommonInterface.php
src/ApiBundle/Entity/Interfaces/CommonInterface.php
+16
-0
No files found.
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
Markdown
is supported
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