-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix $blueprint functions to do what they're expected #111
base: main
Are you sure you want to change the base?
Conversation
@@ -247,7 +282,7 @@ public function extensions(): Collection | |||
try { | |||
$conf = Yaml::parse($this->fileRead(base_path(".blueprint/extensions/$extension/private/.store/conf.yml"))); | |||
|
|||
$collection->push(array_filter($conf['info'], fn ($k) => !!$k)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? info is more than enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have an idea for an extension that would eventually require more than just the info tab.
But also just to do what it says. The method isn't for getting the info section, it's for getting the config
…-framework into fix/$blueprint-functions
@@ -77,7 +77,7 @@ public function collect(): array | |||
|
|||
'blueprint' => [ | |||
'version' => $this->placeholderService->version(), | |||
'extensions' => $this->blueprint->extensions()->toArray(), | |||
'extensions' => $this->blueprint->extensionsConfigs()->toArray(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this sends the entire config which is invalid, only info needs to be send (map the data)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix it, but I'm curious. What does the API use the entire info section for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to keep track of usage statistics/versions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
interesting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed x2. That or I'm being very silly.
And add methods for current behavior