* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
class BaseCommandResolver extends BaseResolver {
- /**
- * Prefix for local, remote or other resolver
- */
- private $commandPrefix = '';
-
/**
* Validated command name
*/
parent::__construct($className);
}
- /**
- * Getter for command prefix
- *
- * @return $commandPrefix Last validated commandPrefix
- */
- protected final function getCommandPrefix () {
- return $this->commandPrefix;
- }
-
- /**
- * Setter for command prefix
- *
- * @param $commandPrefix Last validated commandPrefix
- * @return void
- */
- protected final function setCommandPrefix ($commandPrefix) {
- $this->commandPrefix = $commandPrefix;
- }
-
/**
* Setter for command name
*
} // END - if
// Create the full class name
- $className = $this->getCommandPrefix() . $this->convertToClassName($commandName) . 'Command';
+ $className = $this->getClassPrefix() . $this->convertToClassName($commandName) . 'Command';
// Now, let us create the full name of the command class
$this->setClassName($className);