You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to use blade-generate, but we're getting this error Error: You don't appear to have installed or activated Sage 9!
I then took a quick look in the package and it appears that you're looking for the App\sage namespace\function.
We're using a heavily customized theme where we've overridden the default App namespace,
which is fully supported in the Sage theme.
Even some packages like soberwp have added wordpress filters to allow users/themes to override the default namespace.
Potential Solution / Examples
../vendor/soberwp/controller/controller.php:
10 function sage()
11 {
12 // Determine if project namespace has been changed
13 sage = apply_filters('sober/controller/sage/namespace', 'App') . '\sage';
14
15 // Return the function if it exists
16 if (function_exists($sage)) {
17 return $sage;
18 }
19
20 // Return false if function does not exist
21 return false;
22 }
Summary
We're trying to use blade-generate, but we're getting this error
Error: You don't appear to have installed or activated Sage 9!
I then took a quick look in the package and it appears that you're looking for the
App\sage
namespace\function.We're using a heavily customized theme where we've overridden the default
App
namespace,which is fully supported in the Sage theme.
Even some packages like soberwp have added wordpress filters to allow users/themes to override the default namespace.
Potential Solution / Examples
../vendor/soberwp/controller/controller.php:
../vendor/soberwp/controller/src/Loader.php:
Is it possible for you to make a similar solution with filters for this package?
I haven't personally worked with WP_CLI before so i don't know if you have full access to WordPress function or not, like
apply_filters();
Not including any dev environments such as PHP version etc since this is more of a logical issue.
The text was updated successfully, but these errors were encountered: