Skip to content

Commit

Permalink
Fix configuration script: use the getFilesToCopy method
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentj committed Mar 14, 2024
1 parent 8f997c9 commit 917937f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions pgrouting/install/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ public function getDefaultParameters()
);
}

public function getFilesToCopy()
{
return array(
'www/css' => 'www:pgrouting/css',
'www/js/dist' => 'www:pgrouting/js',
);
}

public function configure(ConfigurationHelpers $helpers)
{
// srid = projection of the target pgrouting tables
Expand All @@ -34,9 +42,6 @@ public function configure(ConfigurationHelpers $helpers)
'PostgreSQL group of user to grant access on the schema pgrouting ?',
$this->parameters['postgresql_user_group']
);

$helpers->copyDirectoryContent('../www/css', jApp::wwwPath('pgrouting/css'));
$helpers->copyDirectoryContent('../www/js/dist', jApp::wwwPath('pgrouting/js'));
}

public function localConfigure(LocalConfigurationHelpers $helpers)
Expand Down

0 comments on commit 917937f

Please sign in to comment.