Permalink
Browse files

Move IMessagePublisher to a separate file

  • Loading branch information...
msabramo committed Apr 6, 2012
1 parent 6482d69 commit c4b316d71ce15c97e72498befc8c8e8df532982f
Showing with 14 additions and 21 deletions.
  1. +14 −0 src/Gelf/IMessagePublisher.php
  2. +0 −21 src/Gelf/MessagePublisher.php
@@ -0,0 +1,14 @@
+<?php
+
+namespace Gelf;
+
+interface IMessagePublisher {
+ /**
+ * Publishes a Message, returns false if an error occured during write
+ *
+ * @throws UnexpectedValueException
+ * @param unknown_type $message
+ * @return boolean
+ */
+ public function publish(Message $message);
+}
@@ -2,27 +2,6 @@
namespace Gelf;
-interface IMessagePublisher {
- /**
- * Creates a new publisher that sends errors to a Graylog2 server via UDP
- *
- * @throws \InvalidArgumentException
- * @param string $hostname
- * @param integer $port
- * @param integer $chunkSize
- */
- public function __construct($hostname, $port = self::GRAYLOG2_DEFAULT_PORT, $chunkSize = self::CHUNK_SIZE_WAN);
-
- /**
- * Publishes a Message, returns false if an error occured during write
- *
- * @throws UnexpectedValueException
- * @param unknown_type $message
- * @return boolean
- */
- public function publish(Message $message);
-}
-
class MessagePublisher implements IMessagePublisher {
/**
* @var integer

0 comments on commit c4b316d

Please sign in to comment.