Split Output into Output(Generator) and Transport. Needed for later
switching between different mail transports.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
namespace Frs\Output\Transport;
|
||||
|
||||
class StdoutTransport implements TransportInterface
|
||||
{
|
||||
private $content;
|
||||
|
||||
public function setContent($content)
|
||||
{
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
public function transmit()
|
||||
{
|
||||
echo $this->content;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user