Skip to content

Commit

Permalink
fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Nov 6, 2024
1 parent 86c5b47 commit 4136741
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/JsonLd/HydraContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

namespace ApiPlatform\JsonLd;

/*
* This is an autogenerated file, DO NOT MODIFY IT.
* Run the update-hydra-context.php script at the root of the project to refresh it.
*/
const HYDRA_CONTEXT = [
'@context' => [
'hydra' => 'http://www.w3.org/ns/hydra/core#',
Expand Down
12 changes: 5 additions & 7 deletions update-hydra-context.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,12 @@
$context = stream_context_create($opts);
$hydraContext = json_decode(file_get_contents('http://www.w3.org/ns/hydra/context.jsonld', false, $context), true);
file_put_contents('src/JsonLd/HydraContext.php', '<?php
/*
* This is an autogenerated file, DO NOT MODIFY IT.
* Run the update-hydra-contex.php script at the root of the project to refresh it.
*/
declare(strict_types=1);
namespace ApiPlatform\JsonLd;
const HYDRA_CONTEXT = '.var_export($hydraContext, true).';';
/*
* This is an autogenerated file, DO NOT MODIFY IT.
* Run the update-hydra-context.php script at the root of the project to refresh it.
*/
const HYDRA_CONTEXT = '.var_export($hydraContext, true).';');

0 comments on commit 4136741

Please sign in to comment.