Skip to content

Commit 18ea62e

Browse files
committed
feature #74 Composer fixes and updated the autoloading (GrahamCampbell)
This PR was squashed before being merged into the master branch (closes #74). Discussion ---------- Composer fixes and updated the autoloading PSR-0 is deprecated, and we should also be autoloading our tests in `autoload-dev`. We can easily move to PSR-4 without moving any of the files thus retaining bc for any people still requiring files manually. Let me know if you're fine with actually just moving the files up 2 levels in the interest of keeping things clean. Commits ------- e85d5b4 Composer fixes and updated the autoloading
2 parents cde22d9 + e85d5b4 commit 18ea62e

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

composer.json

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "gitonomy/gitlib",
33
"description": "Library for accessing git",
4-
54
"license": "MIT",
65
"authors": [
76
{
@@ -16,19 +15,22 @@
1615
}
1716
],
1817
"homepage": "http://gitonomy.com",
19-
20-
2118
"autoload": {
22-
"psr-0": { "Gitonomy\\Git": ["src/", "tests/"] }
19+
"psr-4": {
20+
"Gitonomy\\Git\\": "src/Gitonomy/Git/"
21+
}
22+
},
23+
"autoload-dev": {
24+
"psr-4": {
25+
"Gitonomy\\Git\\Tests\\": "tests/Gitonomy/Git/Tests/"
26+
}
2327
},
24-
2528
"require": {
2629
"symfony/process": "~2.4"
2730
},
2831
"require-dev": {
29-
"psr/log": "~1"
32+
"psr/log": "~1.0"
3033
},
31-
3234
"suggest": {
3335
"psr/log": "Add some log"
3436
}

0 commit comments

Comments
 (0)