07c4d55572
The Yaga rule interface as well as the static super class can be auto- magically brought into scope using Garden's autoloader instead of being manullay included where needed. I also renamed `lib` to `library` as this is used everywhere else in Vanilla and moved the rules into the `library` dir to keep everything in the same place.
12 lines
458 B
PHP
12 lines
458 B
PHP
<?php if (!defined('APPLICATION')) exit();
|
|
|
|
// Register Yaga library classes and interfaces in the autoloader
|
|
$Map = Gdn_Autoloader::MAP_LIBRARY;
|
|
$Context = Gdn_Autoloader::CONTEXT_APPLICATION;
|
|
$Path = PATH_APPLICATIONS . DS . 'yaga' . DS . 'library';
|
|
$Options = array('Extension' => 'yaga');
|
|
|
|
Gdn_Autoloader::RegisterMap($Map, $Context, $Path, $Options);
|
|
|
|
require_once(PATH_APPLICATIONS . DS . 'yaga' . DS . 'library' . DS . 'functions.render.php');
|