I want to invoke a method using bash script.
Code:
class ABC {
public static function methodABC(){
//My logic
echo "Done";
}
}
That is my code when I am trying this using command line I am getting class fatal error.
php -r 'include "./src/ABC.php"; ABC::methodABC();'
Error:
PHP Fatal error: Uncaught Error: Class 'ABC' not found in Command line code:1 Stack trace: #0 {main} thrown in Command line code on line 1