Skip to content

Commit

Permalink
Merge pull request #35 from albinvar/dev
Browse files Browse the repository at this point in the history
Fix few known errors
  • Loading branch information
albinvar authored Feb 18, 2022
2 parents 8a4c39b + 48224c2 commit a09eaf6
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 26 deletions.
2 changes: 1 addition & 1 deletion app/Commands/ComposerGlobal.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function handle(): void

public function setString(): void
{
$this->string = "\n" . config('path');
$this->string = "\n" . config('composer.PATH_CONFIG');
}

/**
Expand Down
2 changes: 1 addition & 1 deletion app/Commands/Installer/Wordpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Wordpress extends Command
/**
* Execute the console command.
*/
public function handle(): mixed
public function handle()
{
$this->callSilently('settings:init');
$this->wordpress = config('wordpress.PATH');
Expand Down
4 changes: 2 additions & 2 deletions app/Commands/PmaInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
use App\Helpers\Zipper;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Storage;
use LaravelZero\Framework\Commands\Command;

class PmaInstaller extends Command
Expand Down Expand Up @@ -137,7 +138,6 @@ private function getUrl()
return false;
}
return 'https://files.phpmyadmin.net/phpMyAdmin/'.$this->version.'/phpMyAdmin-'.$this->version.'-all-languages.zip';
//return 'http://127.0.0.1:8999/phpMyAdmin-5.1.1-all-languages.zip';
}

private function download(): void
Expand Down Expand Up @@ -188,7 +188,7 @@ private function runTasks(): void
});

$this->task('Setting PhpMyAdmin root ', function () {
if ($this->pma->updateRoot(\Storage::disk('local')->getAdapter()->getPathPrefix().'/www/phpMyAdmin-' . $this->version . '-all-languages')) {
if ($this->pma->updateRoot(Storage::disk('local')->path('/www/phpMyAdmin-' . $this->version . '-all-languages'))) {
return true;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion app/Helpers/ComposerPackageInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function install(): void
{
if (is_bool($this->path)) {
try {
$this->mainPath = Storage::disk('projects')->getAdapter()->getPathPrefix() . $this->frameworkDisk;
$this->mainPath = Storage::disk('projects')->path($this->frameworkDisk);
} catch (\Exception $e) {
$this->mainPath = '/sdcard/www';
}
Expand Down
Empty file modified builds/webzone
100755 → 100644
Empty file.
16 changes: 16 additions & 0 deletions config/composer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| PATH Environment Variable
|--------------------------------------------------------------------------
|
| used on bash.bashrc
|
*/
'PATH_CONFIG' => 'export PATH="/data/data/com.termux/files/home/.composer/vendor/bin:$PATH"'


];
12 changes: 6 additions & 6 deletions config/laravel-installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

/*
/*
|--------------------------------------------------------------------------
| Laravel Name
|--------------------------------------------------------------------------
Expand All @@ -11,8 +11,8 @@
|
*/
'NAME' => 'laravel',
/*

/*
|--------------------------------------------------------------------------
| Laravel Installer full Path
|--------------------------------------------------------------------------
Expand All @@ -21,7 +21,7 @@
|
*/
'FULl_PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin/laravel',

/*
|--------------------------------------------------------------------------
| Laravel Installer Path
Expand All @@ -31,7 +31,7 @@
|
*/
'PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin',

/*
|--------------------------------------------------------------------------
| Laravel installer Package Name
Expand All @@ -41,4 +41,4 @@
|
*/
'PACKAGE_NAME' => 'laravel/installer',
];
];
2 changes: 1 addition & 1 deletion config/manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
'PATH' => 'manager',
'FULL-PATH' => '/data/data/com.termux/files/usr/var/webzone/manager',

/*
|--------------------------------------------------------------------------
| File Manager Port
Expand Down
12 changes: 6 additions & 6 deletions config/php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

/*
/*
|--------------------------------------------------------------------------
| PHP-CS-FIXER Name
|--------------------------------------------------------------------------
Expand All @@ -11,8 +11,8 @@
|
*/
'NAME' => 'php-cs-fixer',
/*

/*
|--------------------------------------------------------------------------
| PHP-CS-FIXER full Path
|--------------------------------------------------------------------------
Expand All @@ -21,7 +21,7 @@
|
*/
'FULl_PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin/php-cs-fixer',

/*
|--------------------------------------------------------------------------
| PHP-CS-FIXER Path
Expand All @@ -31,7 +31,7 @@
|
*/
'PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin',

/*
|--------------------------------------------------------------------------
| PHP-CS-FIXER Package Name
Expand All @@ -41,4 +41,4 @@
|
*/
'PACKAGE_NAME' => 'friendsofphp/php-cs-fixer',
];
];
12 changes: 6 additions & 6 deletions config/phpstan-installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

return [

/*
/*
|--------------------------------------------------------------------------
| Phpstan Name
|--------------------------------------------------------------------------
Expand All @@ -11,8 +11,8 @@
|
*/
'NAME' => 'phpstan',
/*

/*
|--------------------------------------------------------------------------
| Phpstan full Path
|--------------------------------------------------------------------------
Expand All @@ -21,7 +21,7 @@
|
*/
'FULl_PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin/phpstan',

/*
|--------------------------------------------------------------------------
| Phpstan installation Path
Expand All @@ -31,7 +31,7 @@
|
*/
'PATH' => '/data/data/com.termux/files/home/.composer/vendor/bin',

/*
|--------------------------------------------------------------------------
| Laravel installer Package Name
Expand All @@ -41,4 +41,4 @@
|
*/
'PACKAGE_NAME' => 'phpstan/phpstan',
];
];
4 changes: 2 additions & 2 deletions config/symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
*/

'CLI_PATH' => '/data/data/com.termux/files/usr/bin/symfony',

/*
|--------------------------------------------------------------------------
| Path which all commands are stored.
| Path which all commands are stored.
|--------------------------------------------------------------------------
|
| location of symfony cli.
Expand Down

0 comments on commit a09eaf6

Please sign in to comment.