Command::__construct( $name, $route, $schema )
Contents
Source Source
File: libraries/lifterlms-cli/src/Commands/Restful/Command.php
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