lennerd / vipx-bot-detect

A bot detector written in PHP
MIT License
43 stars 18 forks source link

Simplifies YAML file loading #20

Closed acmitch closed 9 years ago

acmitch commented 9 years ago

Issue #19 · Updates the YamlFileLoader loader to read from /Resources/metadata/ by default, simplifying usability. An absolute path can still be passed to override the default behavior.

# Instantiate a BotDetector with the YamlFileLoader instance and path to YAML.
$detector = new Vipx\BotDetect\BotDetector($loader, 'extended.yml');
lennerd commented 9 years ago

Thank you for your help in fixing this bug. Can you please add a unit test to test relative and absolute paths argument?

acmitch commented 9 years ago

Had some issues using the GitHub desktop app, going to create a new pull request.