[SoapBundle][SoapCommon] Removed unused TypeRepository in Definition\Method classes

This commit is contained in:
Francis Besset 2013-12-08 00:23:30 +01:00
parent 1e82d7fdd7
commit 60e3714602
3 changed files with 7 additions and 8 deletions

View File

@ -88,7 +88,6 @@ class AnnotationClassLoader extends Loader
$serviceMethod = new Definition\Method(
$annotation->getValue(),
$this->typeRepository,
$this->getController($class, $method, $annotation)
);
} elseif ($annotation instanceof Annotation\Result) {

View File

@ -23,9 +23,9 @@ class Method extends BaseMethod
{
private $controller;
public function __construct($name, TypeRepository $typeRepository, $controller)
public function __construct($name, $controller)
{
parent::__construct($name, $typeRepository);
parent::__construct($name);
$this->controller = $controller;
}

View File

@ -26,14 +26,14 @@ class Method
private $output;
private $fault;
public function __construct($name, TypeRepository $typeRepository)
public function __construct($name)
{
$this->name = $name;
$this->headers = new Message($name.'Header', $typeRepository);
$this->input = new Message($name.'Request', $typeRepository);
$this->output = new Message($name.'Response', $typeRepository);
$this->fault = new Message($name.'Fault', $typeRepository);
$this->headers = new Message($name.'Header');
$this->input = new Message($name.'Request');
$this->output = new Message($name.'Response');
$this->fault = new Message($name.'Fault');
}
public function getName()