-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work on composer scripts for install/update/remove module
- Loading branch information
Showing
8 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<?php | ||
|
||
use Laminas\Config\Config; | ||
use Laminas\Db\Adapter\Adapter; | ||
use User\Installer\Remove; | ||
|
||
// Composer autoloading | ||
include __DIR__ . '/../../../vendor/autoload.php'; | ||
include realpath(__DIR__ . '/../../../vendor/autoload.php'); | ||
|
||
$result = [ | ||
'init' => false, | ||
'config' => false, | ||
]; | ||
|
||
$install = new Remove(); | ||
$result['init'] = $install->init(); | ||
$result['config'] = $install->manageConfig(); | ||
|
||
var_dump($result); | ||
$config = new Config(include realpath(__DIR__ . '/../../../config/autoload/global.php')); | ||
$adapter = new Adapter($config->db->toArray()); | ||
$install = new Remove($adapter); | ||
echo $install->database(); | ||
echo $install->config(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<?php | ||
|
||
use Laminas\Config\Config; | ||
use Laminas\Db\Adapter\Adapter; | ||
use User\Installer\Update; | ||
|
||
// Composer autoloading | ||
include __DIR__ . '/../../../vendor/autoload.php'; | ||
include realpath(__DIR__ . '/../../../vendor/autoload.php'); | ||
|
||
$result = [ | ||
'init' => false, | ||
'config' => false, | ||
]; | ||
|
||
$install = new Update(); | ||
$result['init'] = $install->init(); | ||
$result['config'] = $install->manageConfig(); | ||
|
||
var_dump($result); | ||
$config = new Config(include realpath(__DIR__ . '/../../../config/autoload/global.php')); | ||
$adapter = new Adapter($config->db->toArray()); | ||
$install = new Update($adapter); | ||
echo $install->database(); | ||
echo $install->config(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters