Skip to content

Commit

Permalink
Added autoloader for mintance library classes, for support psr4 php i…
Browse files Browse the repository at this point in the history
…n stupid code projects.
  • Loading branch information
peterborodatyy committed Sep 5, 2017
1 parent fe7828d commit 6efdf0a
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 47 deletions.
7 changes: 7 additions & 0 deletions autoloader.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php
/**
* Created by PhpStorm.
* User: peterborodatyy
* Date: 9/5/17
* Time: 15:58
*/
43 changes: 0 additions & 43 deletions tests/autoloader.php

This file was deleted.

10 changes: 10 additions & 0 deletions tests/people-id-generator.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

require_once '../autoloader.php';

$mintance = new \Mintance\Mintance('d3be88e277c4d7a3b9f92c262d90683c1e49e5a1d50c464f771e264de43f56be', [
'url' => 'api.mintance.dev',
'protocol' => 'http'
]);

print_r($mintance->people->get());
5 changes: 2 additions & 3 deletions tests/simple-event.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<?php

require_once 'autoloader.php';
require_once '../autoloader.php';

$mintance = new \Mintance\Mintance('d3be88e277c4d7a3b9f92c262d90683c1e49e5a1d50c464f771e264de43f56be', [
'url' => 'api.mintance.dev',
'protocol' => 'http'
]);

$mintance->track('Test Event');

$mintance->track('Test Event');
2 changes: 1 addition & 1 deletion tests/track-custom-people-id.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

require_once 'autoloader.php';
require_once '../autoloader.php';

$mintance = new \Mintance\Mintance('d3be88e277c4d7a3b9f92c262d90683c1e49e5a1d50c464f771e264de43f56be', [
'url' => 'api.mintance.dev',
Expand Down

0 comments on commit 6efdf0a

Please sign in to comment.