Skip to content

Commit

Permalink
Changed vendor to include my 'vendor' name
Browse files Browse the repository at this point in the history
  • Loading branch information
epochblue committed Oct 13, 2012
1 parent a48e005 commit 5eadaff
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
},
"autoload": {
"psr-0": {
"Philip": "src/"
"Epochblue\\Philip": "src/"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
* @package philip
* @copyright 2012 iostudio. LLC
*/

namespace Philip;
namespace Epochblue\Philip;

/**
* Philip Plugin Abstract
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Philip;
namespace Epochblue\Philip;

use Symfony\Component\EventDispatcher\Event;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Philip\IRC;
namespace Epochblue\Philip\IRC;

use Symfony\Component\EventDispatcher\Event as BaseEvent;

Expand All @@ -11,7 +11,7 @@
*/
class Event extends BaseEvent
{
/** @var \Philip\IRC\Request $request The request object for this event */
/** @var Epochblue\Philip\IRC\Request $request The request object for this event */
private $request;

/** @var array $responses Array of responses for the event */
Expand Down Expand Up @@ -53,7 +53,7 @@ public function getMatches()
/**
* Get the request.
*
* @return \Philip\IRC\Request
* @return Epochblue\Philip\IRC\Request
*/
public function getRequest()
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Philip\IRC;
namespace Epochblue\Philip\IRC;

/**
* A representation of an IRC request message.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Philip\IRC;
namespace Epochblue\Philip\IRC;

/**
* A simplified representation of an IRC response object.
Expand Down
21 changes: 12 additions & 9 deletions src/Philip/Philip.php → src/epochblue/Philip/Philip.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php

namespace Philip;
namespace Epochblue\Philip;

use Philip\EventListener;
use Philip\IRC\Event;
use Philip\IRC\Request;
use Philip\IRC\Response;
use Epochblue\Philip\EventListener;
use Epochblue\Philip\IRC\Event;
use Epochblue\Philip\IRC\Request;
use Epochblue\Philip\IRC\Response;
use Monolog\Logger;
use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
Expand Down Expand Up @@ -161,13 +161,16 @@ public function getLogger()
* Loads a plugin. See the README for plugin documentation.
*
* @param string $name The fully-qualified classname of the plugin to load
*
* @throws \InvalidArgumentException
*/
public function loadPlugin($classname)
{
if (class_exists($classname)
&& $plugin = new $classname($this)
and $plugin instanceof \Philip\AbstractPlugin
) {
if (class_exists($classname) && $plugin = new $classname($this)) {
if (!$plugin instanceof AbstractPlugin) {
throw new \InvalidArgumentException('Class must be an instance of \Phlip\Plugin\AbstractPlugin');
}

$plugin->init();
}
}
Expand Down

0 comments on commit 5eadaff

Please sign in to comment.