-
(sfProjectConfiguration) getActive ()
Browse code
Returns the active configuration.
returns The current sfProjectConfiguration instance
-
(sfApplicationConfiguration) getApplicationConfiguration ($application, $environment, $debug, $rootDir, $dispatcher)
Browse code
| $application |
An application name |
| $environment |
The environment name |
| $debug |
true to enable debug mode |
| $rootDir |
The project root directory |
| $dispatcher |
An event dispatcher |
Returns a sfApplicationConfiguration configuration for a given application.
returns A sfApplicationConfiguration instance
-
(sfEventDispatcher) getEventDispatcher ()
Browse code
Returns the event dispatcher.
returns A sfEventDispatcher instance
-
(array) getGeneratorSkeletonDirs ($class, $theme)
Browse code
| $class |
The generator class name |
| $theme |
The theme name |
Gets directories where the skeleton is stored for a generator class and a specific theme.
returns An array of directories
-
(string) getGeneratorTemplate ($class, $theme, $path)
Browse code
| $class |
The generator class name |
| $theme |
The theme name |
| $path |
The template path |
Gets the template to use for a generator class.
returns A template path
throws sfException
-
(array) getGeneratorTemplateDirs ($class, $theme)
Browse code
| $class |
The generator class name |
| $theme |
The theme name |
Gets directories where template files are stored for a generator class and a specific theme.
returns An array of directories
-
(array) getModelDirs ()
Browse code
Gets directories where model classes are stored. The order of returned paths is lowest precedence
to highest precedence.
returns An array of directories
-
(array) getPluginPaths ()
Browse code
Gets the paths to plugins root directories, minding overloaded plugins.
returns The plugin root paths.
-
(string) getRootDir ()
Browse code
Returns the project root directory.
returns The project root directory
-
(string) getSymfonyLibDir ()
Browse code
Returns the symfony lib directory.
returns The symfony lib directory
-
-
setCacheDir ($cacheDir)
Browse code
| $cacheDir |
The absolute path to the cache dir. |
Sets the cache root directory.
-
| $logDir |
The absolute path to the log dir. |
Sets the log directory.
-
| $rootDir |
The project root directory |
Sets the project root directory.
-
Setups the current configuration.
Override this method if you want to customize your project configuration.
-
| $webDir |
The absolute path to the web dir. |
Sets the web root directory.
-
(mixed) __call ($method, $arguments)
Browse code
| $method |
The method name |
| $arguments |
The method arguments |
Calls methods defined via sfEventDispatcher.
returns The returned value of the called method
-
__construct ($rootDir, $dispatcher)
Browse code
| $rootDir |
The project root directory |
| $dispatcher |
The event dispatcher |
Constructor.