Skip to content

Commit 60e3714

Browse files
committed
[SoapBundle][SoapCommon] Removed unused TypeRepository in Definition\Method classes
1 parent 1e82d7f commit 60e3714

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

src/BeSimple/SoapBundle/ServiceDefinition/Loader/AnnotationClassLoader.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public function load($class, $type = null)
8888

8989
$serviceMethod = new Definition\Method(
9090
$annotation->getValue(),
91-
$this->typeRepository,
9291
$this->getController($class, $method, $annotation)
9392
);
9493
} elseif ($annotation instanceof Annotation\Result) {

src/BeSimple/SoapBundle/ServiceDefinition/Method.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ class Method extends BaseMethod
2323
{
2424
private $controller;
2525

26-
public function __construct($name, TypeRepository $typeRepository, $controller)
26+
public function __construct($name, $controller)
2727
{
28-
parent::__construct($name, $typeRepository);
28+
parent::__construct($name);
2929

3030
$this->controller = $controller;
3131
}

src/BeSimple/SoapCommon/Definition/Method.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ class Method
2626
private $output;
2727
private $fault;
2828

29-
public function __construct($name, TypeRepository $typeRepository)
29+
public function __construct($name)
3030
{
3131
$this->name = $name;
3232

33-
$this->headers = new Message($name.'Header', $typeRepository);
34-
$this->input = new Message($name.'Request', $typeRepository);
35-
$this->output = new Message($name.'Response', $typeRepository);
36-
$this->fault = new Message($name.'Fault', $typeRepository);
33+
$this->headers = new Message($name.'Header');
34+
$this->input = new Message($name.'Request');
35+
$this->output = new Message($name.'Response');
36+
$this->fault = new Message($name.'Fault');
3737
}
3838

3939
public function getName()

0 commit comments

Comments
 (0)