33/*
44 * This file is part of the symfony package.
55 * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
6- *
6+ *
77 * For the full copyright and license information, please view the LICENSE
88 * file that was distributed with this source code.
99 */
1010
1111/**
1212 * sfPluginConfiguration represents a configuration for a symfony plugin.
13- *
13+ *
1414 * @package symfony
1515 * @subpackage config
1616 * @author Kris Wallsmith <kris.wallsmith@symfony-project.com>
@@ -26,7 +26,7 @@ abstract class sfPluginConfiguration
2626
2727 /**
2828 * Constructor.
29- *
29+ *
3030 * @param sfProjectConfiguration $configuration The project configuration
3131 * @param string $rootDir The plugin root directory
3232 * @param string $name The plugin name
@@ -50,7 +50,7 @@ public function __construct(sfProjectConfiguration $configuration, $rootDir = nu
5050
5151 /**
5252 * Sets up the plugin.
53- *
53+ *
5454 * This method can be used when creating a base plugin configuration class for other plugins to extend.
5555 */
5656 public function setup ()
@@ -59,7 +59,7 @@ public function setup()
5959
6060 /**
6161 * Configures the plugin.
62- *
62+ *
6363 * This method is called before the plugin's classes have been added to sfAutoload.
6464 */
6565 public function configure ()
@@ -68,9 +68,9 @@ public function configure()
6868
6969 /**
7070 * Initializes the plugin.
71- *
71+ *
7272 * This method is called after the plugin's classes have been added to sfAutoload.
73- *
73+ *
7474 * @return boolean|null If false sfApplicationConfiguration will look for a config.php (maintains BC with symfony < 1.2)
7575 */
7676 public function initialize ()
@@ -79,7 +79,7 @@ public function initialize()
7979
8080 /**
8181 * Returns the plugin root directory.
82- *
82+ *
8383 * @return string
8484 */
8585 public function getRootDir ()
@@ -89,7 +89,7 @@ public function getRootDir()
8989
9090 /**
9191 * Returns the plugin name.
92- *
92+ *
9393 * @return string
9494 */
9595 public function getName ()
@@ -99,11 +99,11 @@ public function getName()
9999
100100 /**
101101 * Initializes autoloading for the plugin.
102- *
102+ *
103103 * This method is called when a plugin is initialized in a project
104104 * configuration. Otherwise, autoload is handled in
105105 * {@link sfApplicationConfiguration} using {@link sfAutoload}.
106- *
106+ *
107107 * @see sfSimpleAutoload
108108 */
109109 public function initializeAutoload ()
@@ -126,10 +126,10 @@ public function initializeAutoload()
126126
127127 /**
128128 * Filters sfAutoload configuration values.
129- *
130- * @param sfEvent $event
131- * @param array $config
132- *
129+ *
130+ * @param sfEvent $event
131+ * @param array $config
132+ *
133133 * @return array
134134 */
135135 public function filterAutoloadConfig (sfEvent $ event , array $ config )
@@ -169,10 +169,10 @@ public function connectTests()
169169
170170 /**
171171 * Listens for the "task.test.filter_test_files" event and adds tests from the current plugin.
172- *
172+ *
173173 * @param sfEvent $event
174174 * @param array $files
175- *
175+ *
176176 * @return array An array of files with the appropriate tests from the current plugin merged in
177177 */
178178 public function filterTestFiles (sfEvent $ event , $ files )
@@ -211,18 +211,18 @@ public function filterTestFiles(sfEvent $event, $files)
211211
212212 /**
213213 * Guesses the plugin root directory.
214- *
214+ *
215215 * @return string
216216 */
217217 protected function guessRootDir ()
218218 {
219219 $ r = new ReflectionClass (get_class ($ this ));
220- return realpath (dirname ($ r ->getFilename ()).'/.. ' );
220+ return realpath (dirname ($ r ->getFileName ()).'/.. ' );
221221 }
222222
223223 /**
224224 * Guesses the plugin name.
225- *
225+ *
226226 * @return string
227227 */
228228 protected function guessName ()
0 commit comments