mirror of
https://github.com/Seldaek/monolog.git
synced 2025-07-31 10:20:14 +02:00
Add license header and move @author to phpdoc
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler\SocketHandler\Exception;
|
||||
|
@@ -1,8 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler\SocketHandler\Exception;
|
||||
|
||||
|
@@ -1,8 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler\SocketHandler;
|
||||
|
||||
|
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler\SocketHandler;
|
||||
@@ -11,10 +17,12 @@ use Monolog\Handler\SocketHandler\Exception\ConnectionException;
|
||||
* Same as Socket but uses pfsockopen() instead allowing the connection to be reused in other requests.
|
||||
*
|
||||
* @see http://php.net/manual/en/function.pfsockopen.php
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
class PersistentSocket extends Socket
|
||||
{
|
||||
protected function createSocketResource() {
|
||||
protected function createSocketResource()
|
||||
{
|
||||
@$resource = pfsockopen($this->connectionString, -1, $errno, $errstr, $this->connectionTimeout);
|
||||
if (!$resource) {
|
||||
throw new ConnectionException("Failed connecting to $this->connectionString ($errno: $errstr)");
|
||||
|
@@ -1,6 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler\SocketHandler;
|
||||
@@ -13,6 +19,7 @@ use Monolog\Handler\SocketHandler\Exception\WriteToSocketException;
|
||||
* Timeout settings must be set before first write to have any effect.
|
||||
*
|
||||
* @see http://php.net/manual/en/function.fsockopen.php
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
class Socket
|
||||
{
|
||||
|
@@ -1,5 +1,15 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
|
||||
namespace Monolog\Handler\SocketHandler;
|
||||
|
||||
class SocketTest extends \PHPUnit_Framework_TestCase
|
||||
|
@@ -1,8 +1,13 @@
|
||||
<?php
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file is part of the Monolog package.
|
||||
*
|
||||
* (c) Jordi Boggiano <j.boggiano@seld.be>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Monolog\Handler;
|
||||
|
||||
@@ -13,6 +18,11 @@ use Monolog\Handler\SocketHandler\PersistentSocket;
|
||||
use Monolog\TestCase;
|
||||
use Monolog\Logger;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @author Pablo de Leon Belloc <pablolb@gmail.com>
|
||||
*/
|
||||
class SocketHandlerTest extends TestCase
|
||||
{
|
||||
public function testWrite()
|
||||
|
Reference in New Issue
Block a user