Browse Source

Added validation message in build php process.

pull/11/head
Roman Axelrod 3 years ago
parent
commit
c899f8c229
  1. 4
      platforms/php/build.php

4
platforms/php/build.php

@ -59,6 +59,10 @@ class Component_Builder {
private string $dist_path = ''; private string $dist_path = '';
function __construct( $args = [] ) { function __construct( $args = [] ) {
if ( empty( $args['backPath'] ) || empty( $args['projectPath'] ) || empty( $args['blockName'] ) || empty( $args['platform'] ) ) {
die( 'Error: Missing arguments. Make sure all parameter passed.' );
}
$this->module_path = $args['backPath']; $this->module_path = $args['backPath'];
$this->project_path = $args['projectPath']; $this->project_path = $args['projectPath'];
$this->component_name = $args['blockName']; $this->component_name = $args['blockName'];

Loading…
Cancel
Save