This repository has been archived by the owner on Mar 11, 2024. It is now read-only.
-
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.
* develop: add object graph in doc add tool to generate object graph CS CS use innmind/specification 2 use dbal 5 test against php 7.3
- Loading branch information
Showing
89 changed files
with
4,236 additions
and
854 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
tools: | ||
external_code_coverage: | ||
runs: 1 | ||
runs: 2 | ||
filter: | ||
excluded_paths: | ||
- tests/* | ||
- graph.php |
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,6 +1,7 @@ | ||
language: php | ||
php: | ||
- 7.2 | ||
- 7.3 | ||
- nightly | ||
matrix: | ||
allow_failures: | ||
|
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 |
---|---|---|
|
@@ -282,3 +282,7 @@ $services = bootstrap( | |
(MyIdentity::class, new MyIdentityGenerator) | ||
); | ||
``` | ||
|
||
## Object graph | ||
|
||
![](graph.svg) |
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
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,49 @@ | ||
<?php | ||
declare(strict_types = 1); | ||
|
||
require __DIR__.'/vendor/autoload.php'; | ||
|
||
use Innmind\CLI\{ | ||
Main, | ||
Environment, | ||
}; | ||
use Innmind\OperatingSystem\OperatingSystem; | ||
use Innmind\Neo4j\ONM\Metadata\Entity; | ||
use function Innmind\Neo4j\ONM\bootstrap; | ||
use function Innmind\Neo4j\DBAL\bootstrap as dbal; | ||
use Innmind\Server\Control\Server\Command; | ||
use Innmind\ObjectGraph\{ | ||
Graph, | ||
Visualize, | ||
}; | ||
use Innmind\Immutable\Set; | ||
|
||
new class extends Main { | ||
protected function main(Environment $env, OperatingSystem $os): void | ||
{ | ||
$dbal = dbal( | ||
$os->remote()->http(), | ||
$os->clock() | ||
); | ||
$package = bootstrap( | ||
$dbal, | ||
Set::of(Entity::class) | ||
); | ||
|
||
$graph = new Graph; | ||
$visualize = new Visualize; | ||
|
||
$os | ||
->control() | ||
->processes() | ||
->execute( | ||
Command::foreground('dot') | ||
->withShortOption('Tsvg') | ||
->withShortOption('o', 'graph.svg') | ||
->withInput( | ||
$visualize($graph($package['manager'])) | ||
) | ||
) | ||
->wait(); | ||
} | ||
}; |
Oops, something went wrong.