Skip to content

Commit

Permalink
Fixing support by phar by not using realpath() in require statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Harvey committed Jun 11, 2018
1 parent ce33cc6 commit d74d176
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions src/Raygun4php/RaygunClient.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?php
namespace Raygun4php {
require_once realpath(__DIR__ . '/RaygunMessage.php');
require_once realpath(__DIR__ . '/RaygunIdentifier.php');
require_once realpath(__DIR__ . '/Raygun4PhpException.php');
require_once realpath(__DIR__ . '/Uuid.php');
require_once __DIR__ . '/RaygunMessage.php';
require_once __DIR__ . '/RaygunIdentifier.php';
require_once __DIR__ . '/Raygun4PhpException.php';
require_once __DIR__ . '/Uuid.php';

use Raygun4Php\Rhumsaa\Uuid\Uuid;

Expand Down
2 changes: 1 addition & 1 deletion src/Raygun4php/RaygunExceptionMessage.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
namespace Raygun4php
{
require_once realpath(__DIR__.'/RaygunExceptionTraceLineMessage.php');
require_once __DIR__.'/RaygunExceptionTraceLineMessage.php';

class RaygunExceptionMessage
{
Expand Down
10 changes: 5 additions & 5 deletions src/Raygun4php/RaygunMessage.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?php
namespace Raygun4php
{
require_once realpath(__DIR__.'/RaygunMessageDetails.php');
require_once realpath(__DIR__.'/RaygunExceptionMessage.php');
require_once realpath(__DIR__.'/RaygunRequestMessage.php');
require_once realpath(__DIR__.'/RaygunEnvironmentMessage.php');
require_once realpath(__DIR__.'/RaygunClientMessage.php');
require_once __DIR__.'/RaygunMessageDetails.php';
require_once __DIR__.'/RaygunExceptionMessage.php';
require_once __DIR__.'/RaygunRequestMessage.php';
require_once __DIR__.'/RaygunEnvironmentMessage.php';
require_once __DIR__.'/RaygunClientMessage.php';

class RaygunMessage
{
Expand Down

0 comments on commit d74d176

Please sign in to comment.