@@ -26,7 +26,6 @@ class Config extends Singleton
2626 *
2727 * <code>
2828 * ActiveRecord\Config::initialize(function($cfg) {
29- * $cfg->set_model_directory('/your/app/models');
3029 * $cfg->set_connections(array(
3130 * 'development' => 'mysql://user:[email protected] /awesome_development', 3231 * 'production' => 'mysql://user:[email protected] /awesome_production')); @@ -50,14 +49,6 @@ class Config extends Singleton
5049 */
5150 private $ connections = array ();
5251
53- /**
54- * Directory for the auto_loading of model classes.
55- *
56- * @see activerecord_autoload
57- * @var string
58- */
59- private $ model_directory ;
60-
6152 /**
6253 * Switch for logging.
6354 *
@@ -94,7 +85,6 @@ class Config extends Singleton
9485 *
9586 * <code>
9687 * ActiveRecord\Config::initialize(function($cfg) {
97- * $cfg->set_model_directory('/path/to/your/model_directory');
9888 * $cfg->set_connections(array(
9989 * 'development' => 'mysql://username:[email protected] /database_name')); 10090 * });
@@ -197,31 +187,6 @@ public function set_default_connection($name)
197187 $ this ->default_connection = $ name ;
198188 }
199189
200- /**
201- * Sets the directory where models are located.
202- *
203- * @param string $dir Directory path containing your models
204- * @return void
205- */
206- public function set_model_directory ($ dir )
207- {
208- $ this ->model_directory = $ dir ;
209- }
210-
211- /**
212- * Returns the model directory.
213- *
214- * @return string
215- * @throws ConfigException if specified directory was not found
216- */
217- public function get_model_directory ()
218- {
219- if ($ this ->model_directory && !file_exists ($ this ->model_directory ))
220- throw new ConfigException ('Invalid or non-existent directory: ' .$ this ->model_directory );
221-
222- return $ this ->model_directory ;
223- }
224-
225190 /**
226191 * Turn on/off logging
227192 *
0 commit comments