Cerys
6 months ago
1 changed files with 15 additions and 0 deletions
@ -0,0 +1,15 @@ |
|||||
|
<?php |
||||
|
|
||||
|
|
||||
|
namespace Darksparrow\Deegraph\examples\SchemaBuilder; |
||||
|
|
||||
|
require_once __DIR__ . "/../../../vendor/autoload.php"; |
||||
|
require_once __DIR__ . "/../../../Examples/SchemaBuilder/Schemas/Message.php"; |
||||
|
|
||||
|
use Darksparrow\Deegraph\Examples\SchemaBuilder\Schemas\Message; |
||||
|
use Darksparrow\DeegraphPHP\SchemaBuilder\SchemaBuilder; |
||||
|
|
||||
|
$example = new Message(); |
||||
|
$result = SchemaBuilder::GenerateSchema($example); |
||||
|
|
||||
|
echo json_encode($result, JSON_PRETTY_PRINT); |
Loading…
Reference in new issue