1
0
mirror of https://github.com/danog/class-finder.git synced 2024-11-26 20:14:59 +01:00
Commit Graph

187 Commits

Author SHA1 Message Date
Hayden Pierce
a1a1926351 Refactor agressively to namespaces that map to multiple directories. 2018-08-27 20:15:12 -05:00
Hayden Pierce
f0423a39d4 Refactor to account for psr4 namespaces from dependencies 2018-08-22 19:43:19 -05:00
Hayden Pierce
387434def0 Rename method 2018-08-22 19:27:58 -05:00
Hayden Pierce
6dbbd2c7ef Refactor Exception into a new directory 2018-08-18 11:12:43 -05:00
Hayden Pierce
9254ea27a7 Refactor Finders into a new directory 2018-08-18 11:09:31 -05:00
Hayden Pierce
ddba32ed77 Add an interface for Finders and implement it for PSR4 2018-08-18 11:07:56 -05:00
Hayden Pierce
38a1c6a8c2 Refactor some PSR4 specific stuff into a PSR4 class 2018-08-18 11:00:38 -05:00
Hayden Pierce
8b8404cf82 Move initialize to the top because it's basically a constructor in disguise 2018-08-18 10:48:55 -05:00
Hayden Pierce
83dab4b8a0 Refactor to make AppConfig an instance object; move another method into the class. 2018-08-18 10:42:54 -05:00
Hayden Pierce
4ccbaf74bb Refactor to move configuration stuff to a new class 2018-08-18 10:22:29 -05:00
Hayden Pierce
7193ca7858 Add notes about how the stupid testing harness works. 2018-08-04 20:22:43 -05:00
Hayden Pierce
20a3498c60 Invite people to submit issues. 2018-08-04 20:07:55 -05:00
Hayden Pierce
3df6a82623 Add more helpful link to error explanation - missing composer config 2018-08-04 20:06:24 -05:00
Hayden Pierce
f7d3eeac21 Add more helpful link to error explanation - unknown sub-namespace (I totally just made up that name - I don't think a "sub-namespace" is a thing.) 2018-08-04 19:52:29 -05:00
Hayden Pierce
fbeb761894 Add more helpful link to error explanation 2018-08-04 19:41:04 -05:00
Hayden Pierce
db2d84eaf4 Add docs explaining how to fix an Unknown namespace error 2018-08-04 19:39:28 -05:00
Hayden Pierce
797c81d41a Add limitations block to readme 2018-08-04 19:18:02 -05:00
Hayden Pierce
d335758e48 Add a test confirming that empty directories don't throw an exception. 2018-08-04 15:30:41 -05:00
Hayden Pierce
229edca220 Show a more helpful error message when a root a namespace is registered, but the child components point to a directory that doesn't exist. 2018-08-04 15:27:52 -05:00
Hayden Pierce
61528d7e87 Add a test that will add a more help error message. 2018-08-04 15:15:50 -05:00
Hayden Pierce
0328bd9501 Add a more helpful error message when composer.json is lost. 2018-08-04 15:05:51 -05:00
Hayden Pierce
07ea6a52ba Add failing test that demonstrating a missing composer.json file. 2018-08-04 14:58:00 -05:00
Hayden Pierce
531d9d02db Use correct path that composer will install. 2018-08-04 14:49:23 -05:00
Hayden Pierce
c1070db5cd Add failing test to improve error messages. 2018-08-04 14:43:50 -05:00
Hayden Pierce
93e95fec33 Make test app include the package from packagist.
This is done to allow the test app to autoloading classes because composer will
now autoload from the HaydenPierce/ClassFinder namespace.
2018-08-04 14:41:48 -05:00
Hayden Pierce
7f23741fd7 Use correct path that composer will install. 2018-08-04 11:03:21 -05:00
Hayden Pierce
dfb8db82e0 Skip skip out of the vendor directory to avoid finding my own composer.json 2018-08-04 10:29:00 -05:00
Hayden Pierce
90d821c6e8 Ensure that the test has a prank composer.json, like a real application would.
This is the result of discovering that ClassFinder will find it's own composer.json and use that
as the application root. Which is kind of hilarious.
2018-08-04 10:20:34 -05:00
Hayden Pierce
22a510724a Add license 2018-07-28 14:45:27 -05:00
Hayden Pierce
3090a07a29 Add readme 2018-07-28 14:42:35 -05:00
Hayden Pierce
c3f06b56bd Change namespace from hpierce1102 to haydenpierce 2018-07-28 14:22:35 -05:00
Hayden Pierce
f4c2bf85e6 Fix a bug where a nested assumed namespace would get backwards and prevent classes from being found. 2018-07-28 11:42:51 -05:00
Hayden Pierce
b5ccf31bc3 Make tests pass. 2018-07-21 16:38:22 -05:00
Hayden Pierce
93e08261b7 get test working. Note: working is not passing. 2018-07-21 16:36:21 -05:00
Hayden Pierce
d901b1171d Add a test app. 2018-07-21 10:26:01 -05:00
Hayden Pierce
0f952b48d1 Dynamically discover the application root 2018-07-14 08:41:26 -05:00
Hayden Pierce
d5fb2dcee6 Initial commit - copy content from Stack Overflow 2018-07-14 08:27:13 -05:00