create() public method

public create ( string $resource ) : Lemon\RestBundle\Object\ManagerInterface
$resource string
return Lemon\RestBundle\Object\ManagerInterface
Beispiel #1
0
 public function options(Request $request, Response $response, $resource, $id = null)
 {
     $manager = $this->managerFactory->create($resource);
     $response->headers->set('Allowed', implode(", ", $manager->getOptions(!is_null($id))), true);
     $response->setContent(null);
     return $response;
 }