The bundle is back!

The definition of service has changed, read the README.
This commit is contained in:
Francis Besset
2011-07-17 10:46:54 +02:00
parent 81118f8d47
commit 1c608ccf20
48 changed files with 641 additions and 535 deletions

View File

@ -38,6 +38,10 @@ class ServiceDefinition
{
$this->setName($name);
$this->setNamespace($namespace);
$this->methods = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Method');
$this->headers = new Collection('getName', 'Bundle\WebServiceBundle\ServiceDefinition\Header');
$this->setMethods($methods);
$this->setHeaders($headers);
}
@ -85,9 +89,8 @@ class ServiceDefinition
/**
* @param array $methods
*/
public function setMethods($methods)
public function setMethods(array $methods)
{
$this->methods = new Collection('getName');
$this->methods->addAll($methods);
}
@ -102,9 +105,8 @@ class ServiceDefinition
/**
* @param array $headers
*/
public function setHeaders($headers)
public function setHeaders(array $headers)
{
$this->headers = new Collection('getName');
$this->headers->addAll($headers);
}
}