added initial support for service definition
This commit is contained in:
21
Tests/StaticFileDumper.php
Normal file
21
Tests/StaticFileDumper.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace Bundle\WebServiceBundle\Tests;
|
||||
|
||||
use Bundle\WebServiceBundle\ServiceDefinition\ServiceDefinition;
|
||||
use Bundle\WebServiceBundle\ServiceDefinition\Dumper\DumperInterface;
|
||||
|
||||
class StaticFileDumper implements DumperInterface
|
||||
{
|
||||
private $file;
|
||||
|
||||
public function __construct($file)
|
||||
{
|
||||
$this->file = $file;
|
||||
}
|
||||
|
||||
public function dumpServiceDefinition(ServiceDefinition $definition)
|
||||
{
|
||||
return $this->file;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user