Command::__construct( $name, $route, $schema )
Contents
Source Source
File: libraries/lifterlms-cli/src/Commands/Restful/Command.php
36 37 38 39 40 41 42 | public function __construct( $name , $route , $schema ) { $this ->name = $name ; $parsed_args = preg_match_all( '#\([^\)]+\)#' , $route , $matches ); $this ->resource_identifier = ! empty ( $matches [0] ) ? array_pop ( $matches [0] ) : null; $this ->route = rtrim( $route ); $this ->schema = $schema ; } |
Expand full source code Collapse full source code View on GitHub