Skip to content

Commit 6a37e21

Browse files
authored
Merge pull request #8 from bufferapp/task/psr-4-autoload
Psr-4 autoload + folder and namespace naming reorg
2 parents f0bf13c + 2400fa2 commit 6a37e21

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,10 @@
99
},
1010
"require-dev": {
1111
"datadog/dd-trace": "0.34.*"
12+
},
13+
"autoload": {
14+
"psr-4": {
15+
"Buffer\\Bufflog\\": "./src/BuffLog"
16+
}
1217
}
1318
}

example.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
require_once('./src/php-bufflog/BuffLog.php');
2+
require_once('./src/Bufflog/BuffLog.php');
33

44
use Buffer\Bufflog;
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
2-
namespace Buffer;
2+
namespace Buffer\BuffLog;
33
require_once('vendor/autoload.php');
44

55
use Monolog\Logger as Logger;

0 commit comments

Comments
 (0)