Command::__construct( $name,  $route,  $schema )


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;
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.