Commit Graph

11 Commits

Author SHA1 Message Date
Vassyli ae63c209e9 Clean-ups
Left overs to clean and changes from discussion.

Fixed config path finding
2016-07-29 11:57:24 +02:00
Vassyli 712a89bdad Changes for configuration file approach
Packages that are either of type lotgd-crate or lotgd-module can add daenerys commands and doctrine entity directories by using a lotgd.yml configuration file in their directory root (the same one were composer.json is).

All namespaces given in lotgd.yml have to be relative to the packages namespace, without a leading backslash (\).

Root namespace is derived from composer.json, either explicitely (via extra.lotgd-namespace) or implicitely via the first psr-4 or the first psr-0 namespace.
2016-07-29 09:35:46 +02:00
Vassyli 396e174fb5 Add working directory search path for composer
Added a needed search path for composer.json and a test testing exactly this.
2016-07-29 09:35:46 +02:00
Vassyli f136711884 Adds changes as discussed in PR#50 2016-07-29 09:35:46 +02:00
Vassyli 58147ed14b Updated bootstrap to call packages Bootstrap
The bootstrap procedure has been updated to search through all packages to get the ones with an lotgd-namespace extra field. These are then tested if they have or have not a bootstrap class implementing BootstrapInterface. If yes, they get added to a stack used to modify the bootstrap procedure. For know, bootstrap supports additional entity directories.
2016-07-29 09:35:46 +02:00
Austen McDonald 8e8b2de219 Make reading lotgd-namespace directories more generic, to support crates for example
Merges #49
2016-07-26 12:44:26 +02:00
Austen McDonald 0873121151 Change bootstrap to look for metadata directories from modules. 2016-07-25 21:35:09 +00:00
Austen McDonald 6083e5c170 Add logger to Game, along with some basic log messages 2016-07-18 23:03:52 +00:00
Basilius Sauter 1132a731f5 Add API to extend annotation metadata directory
This commit adds the possibility for externals to add additional
directories in order to extend the directories doctrine uses to read
metadata from.

Closes #39
2016-06-20 22:40:42 +02:00
Austen McDonald ca98a7337a Rename Game and Bootsrap methods to address feedback 2016-05-19 22:05:59 -07:00
Austen McDonald c60794511f Add Bootstrap as (at least temporary) way to construct a game. 2016-05-15 14:50:30 -07:00