Fixing deprecated usage of Director::addRules(), replace with YAML.