File path: dist/twist/Core/Utilities/Command.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
Type: Utility
Command
— Execute bash command line commands on the server and get back nicely formatted result array.
<?php
//Set the variables for the example
$strCommand = 'foo';
$dirCurrentWorkingDirectory = null;
//Call the function execute with the example vars
Twist::Command() -> execute($strCommand, $dirCurrentWorkingDirectory);
Method | Access | Returns |
---|---|---|
execute | public | void |
isEnabled | public | void |