-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update jstree actions #11
base: master
Are you sure you want to change the base?
Changes from all commits
3126128
82add84
313509f
66b8e42
1f301e3
edb0f78
3754231
6a7eac1
2b40093
4ec6c6f
0c2625e
93f56ff
cebb9a7
0f4040e
d3bb796
cfff77f
5e1e5aa
31cc6d8
46acaac
a0c5bd1
68c9292
45a3ce2
5ed7196
172404d
03754a1
8cc1072
4592527
a286aa5
ed89542
858a45e
d312817
168cadd
8899c4b
e7a96ff
a6edc81
1b24f03
df7d508
6153ffb
4f5cee6
f3165ae
29057c9
349cb20
19f4872
adc7980
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Kiboko\Bundle\DAMBundle\Controller\Api\Rest; | ||
|
||
use FOS\RestBundle\Controller\Annotations\NamePrefix; | ||
use FOS\RestBundle\Controller\Annotations\RouteResource; | ||
use Kiboko\Bundle\DAMBundle\Entity\Document; | ||
use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; | ||
|
||
/** | ||
* @RouteResource("document") | ||
* @NamePrefix("kiboko_api_") | ||
*/ | ||
final class DocumentController extends RestController | ||
{ | ||
public function deleteAction(Document $document) | ||
{ | ||
return $this->handleDeleteRequest($document->getId()); | ||
} | ||
|
||
public function getForm() | ||
{ | ||
// This method is not needed to delete entities. | ||
// | ||
// Note: You will need to provide a proper implementation here | ||
// when you start working with more features of REST APIs. | ||
} | ||
|
||
public function getFormHandler() | ||
{ | ||
// This method is not needed to delete entities. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method MUST return a |
||
// | ||
// Note: You will need to provide a proper implementation here | ||
// when you start working with more features of REST APIs. | ||
} | ||
|
||
public function getManager() | ||
{ | ||
return $this->get('kiboko_dam.document_manager.api'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass the service in the DI |
||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<?php | ||
|
||
namespace Kiboko\Bundle\DAMBundle\Controller\Api\Rest; | ||
|
||
use FOS\RestBundle\Controller\Annotations\NamePrefix; | ||
use FOS\RestBundle\Controller\Annotations\RouteResource; | ||
use Oro\Bundle\SoapBundle\Controller\Api\Rest\RestController; | ||
|
||
/** | ||
* @RouteResource("document_node") | ||
* @NamePrefix("kiboko_api_") | ||
*/ | ||
final class DocumentNodeController extends RestController | ||
{ | ||
public function deleteAction($id) | ||
{ | ||
return $this->handleDeleteRequest($id); | ||
} | ||
|
||
public function getForm() | ||
{ | ||
// This method is not needed to delete entities. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method MUST return a |
||
// | ||
// Note: You will need to provide a proper implementation here | ||
// when you start working with more features of REST APIs. | ||
} | ||
|
||
public function getFormHandler() | ||
{ | ||
// This method is not needed to delete entities. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The method MUST return a |
||
// | ||
// Note: You will need to provide a proper implementation here | ||
// when you start working with more features of REST APIs. | ||
} | ||
|
||
public function getManager() | ||
{ | ||
return $this->get('kiboko.document_node_manager.api'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Pass the service in the DI |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method MUST return a
FormInterface
object