m('doDetail', new AnnoExt('txt')); $ai->m('modificationsInt', new AnnoPath('modInt?/paramInts+:#^[0-9]+$#')); $ai->m('modificationsString', new AnnoPath('modString?/params+:#^[a-z]+$#')); } /* * http://localhost/php-storm/internship-playground/src-php/public/user */ public function index() { echo 'Hallo Welt!'; } /* * http://localhost/php-storm/internship-playground/src-php/public/user/detail * http://localhost/php-storm/internship-playground/src-php/public/user/detail/Test * http://localhost/php-storm/internship-playground/src-php/public/user/detail/a/b/c */ public function doDetail(?string $text1 = null, ?string $text2 = null, ?string $text3 = null) { echo "Hallo Welt! Detail Function " . $text1 . " " . $text2 . " " . $text3; } /* * http://localhost/php-storm/internship-playground/src-php/public/user/modInt/1/2/3 */ public function modificationsInt(array $paramInts) { echo 'params mod ints: ' . implode(', ', $paramInts); } /* * http://localhost/php-storm/internship-playground/src-php/public/user/modString/a/b/c */ public function modificationsString(array $params) { echo 'params: ' . implode(', ', $params); } }