Browse Source

included code in the repo to generate the Message example schema

pull/2/head
Cerys 6 months ago
parent
commit
f7e4eb0b78
  1. 15
      Examples/SchemaBuilder/ExampleScripts/generateMessageSchema.php

15
Examples/SchemaBuilder/ExampleScripts/generateMessageSchema.php

@ -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…
Cancel
Save