Hi there guys!
I'm trying to create a bundle extension for my project and i can't do the initial steps.
My steps
1) Create the php file in /src/myExtensionNamespace
<?php
namespace myExtensionNamespace
use Bolt\Extension\SimpleExtension;
class myExtensionNamespaceExtension extends SimpleExtension
{
// Extension code goes here.
}
?>
2) Instert this in composer.json (the one in the root of the project)
"autoload" : {
"psr-4" : {
"myExtensionNamespace\": "src\myExtensionNamespace"
}
}
3) run composer dump-autoload command
4) Create .bolt.yml inr root directory with this inside:
extensions:
- myExtensionNamespace
After that i get the message: Extension class name "myExtensionNamespace" is defined in .bolt.yml or .bolt.php, but the class name is misspelled or not loadable by Composer.
So, i supose composer do nothing (my composer.lock file is not modified after dump-autoload) , im missing something or some namespace o routes are wrong.
Any help?
Thank You all!
J!