From 884f8f186ae2ac6a5c5f78252459a67fe8aecb6c Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 7 Sep 2020 20:18:56 +1000 Subject: [PATCH] Clean up for improvements to composer --- app/Console/Commands/CheckData.php | 9 ++++ app/Console/Commands/CreateTestData.php | 9 ++++ app/Console/Commands/DemoMode.php | 9 ++++ app/Console/Commands/DesignUpdate.php | 9 ++++ app/Console/Commands/ImportMigrations.php | 9 ++++ app/Console/Commands/PostUpdate.php | 62 +++++------------------ app/Console/Commands/SendTestEmails.php | 9 ++++ app/DataMapper/Analytics/LoginFailure.php | 9 ++++ app/DataMapper/Analytics/LoginSuccess.php | 9 ++++ 9 files changed, 85 insertions(+), 49 deletions(-) diff --git a/app/Console/Commands/CheckData.php b/app/Console/Commands/CheckData.php index 9d9ad28ca550..73c9fc5f7c6e 100644 --- a/app/Console/Commands/CheckData.php +++ b/app/Console/Commands/CheckData.php @@ -1,4 +1,13 @@ 'install')); $application = new Application(); $application->setAutoExit(false); - $out = $application->run($input); + $application->run($input); - print_r($out); echo "Done."; - // $composer_data = [ - // 'url' => 'https://getcomposer.org/composer.phar', - // 'dir' => __DIR__.'/.code', - // 'bin' => __DIR__.'/.code/composer.phar', - // 'json' => __DIR__.'/.code/composer.json', - // 'conf' => [ - // 'autoload' => [ - // 'psr-4' => [ - // '' => 'local/', - // ], - // ], - // ], - // ]; - - // if (! is_dir($composer_data['dir'])) { - // mkdir($composer_data['dir'], 0777, true); - // } - - // if (! is_dir("{$composer_data['dir']}/local")) { - // mkdir("{$composer_data['dir']}/local", 0777, true); - // } - - // copy($composer_data['url'], $composer_data['bin']); - // require_once "phar://{$composer_data['bin']}/src/bootstrap.php"; - - // $conf_json = json_encode($composer_data['conf'], JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE); - // file_put_contents($composer_data['json'], $conf_json); - // chdir($composer_data['dir']); - // putenv("COMPOSER_HOME={$composer_data['dir']}"); - // putenv('OSTYPE=OS400'); - // $app = new \Composer\Console\Application(); - - // $factory = new \Composer\Factory(); - // $output = $factory->createOutput(); - - // $input = new \Symfony\Component\Console\Input\ArrayInput([ - // 'command' => 'install', - // ]); - // $input->setInteractive(false); - // echo '
';
-        // $cmdret = $app->doRun($input, $output);
-        // echo 'end!';
-
-        // \Log::error(print_r($cmdret, 1));
     }
 }
diff --git a/app/Console/Commands/SendTestEmails.php b/app/Console/Commands/SendTestEmails.php
index badff65c13d7..514cda83f083 100644
--- a/app/Console/Commands/SendTestEmails.php
+++ b/app/Console/Commands/SendTestEmails.php
@@ -1,4 +1,13 @@