-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Code refactoring * Adds metrics resource * Adds an ability to store settings in RoadRunner KV * Refctors metrics - Adds an ability to get last points for metric - Improved metrics creator - Created metrics stores into a storage * Refactors RPC manager - Increases timeout for RR reconnection - Adds Server DTO Refctors metrics - Improves chart creation panel Refactors plugins UI - stores collapsed state
- Loading branch information
1 parent
e6f1f4f
commit 40bf97a
Showing
193 changed files
with
2,397 additions
and
822 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
return [ | ||
'writers' => [ | ||
\App\Application\Schema\DoctrineCollectionWriter::class | ||
] | ||
]; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Application; | ||
|
||
use Spiral\Boot\DirectoriesInterface; | ||
|
||
final class AppDirectories | ||
{ | ||
public function __construct( | ||
private readonly DirectoriesInterface $directories | ||
) { | ||
} | ||
|
||
/** | ||
* Application root directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getRoot(?string $path = null): string | ||
{ | ||
return $this->buildPath('root', $path); | ||
} | ||
|
||
/** | ||
* Application directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getApp(?string $path = null): string | ||
{ | ||
return $this->buildPath('app', $path); | ||
} | ||
|
||
/** | ||
* Public directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getPublic(?string $path = null): string | ||
{ | ||
return $this->buildPath('public', $path); | ||
} | ||
|
||
/** | ||
* Runtime directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getRuntime(?string $path = null): string | ||
{ | ||
return $this->buildPath('runtime', $path); | ||
} | ||
|
||
/** | ||
* Runtime cache directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getCache(?string $path = null): string | ||
{ | ||
return $this->buildPath('cache', $path); | ||
} | ||
|
||
/** | ||
* Vendor libraries directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getVendor(?string $path = null): string | ||
{ | ||
return $this->buildPath('vendor', $path); | ||
} | ||
|
||
/** | ||
* Config directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getConfig(?string $path = null): string | ||
{ | ||
return $this->buildPath('config', $path); | ||
} | ||
|
||
/** | ||
* Resources directory. | ||
* | ||
* @return non-empty-string | ||
*/ | ||
public function getResources(?string $path = null): string | ||
{ | ||
return $this->buildPath('resources', $path); | ||
} | ||
|
||
private function buildPath(string $key, ?string $path = null): string | ||
{ | ||
return \rtrim($this->directories->get($key), '/') . ($path ? '/' . \ltrim($path, '/') : ''); | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace App\Application\Bootloader; | ||
|
||
use App\Application\HTTP\Response\JsonResourceInterceptor; | ||
use App\Application\Persistance\CacheSettingsRepository; | ||
use App\Module\Settings\SettingsRepositoryInterface; | ||
use Spiral\Bootloader\DomainBootloader; | ||
use Spiral\Core\CoreInterface; | ||
|
||
final class AppBootloader extends DomainBootloader | ||
{ | ||
protected const INTERCEPTORS = [ | ||
JsonResourceInterceptor::class, | ||
]; | ||
|
||
protected const SINGLETONS = [ | ||
SettingsRepositoryInterface::class => CacheSettingsRepository::class, | ||
CoreInterface::class => [self::class, 'domainCore'], | ||
]; | ||
} |
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
Oops, something went wrong.