composer.json
file to require Cherrycake version 1.x instead of version 0.x:src
directory in your project and move your modules there. Remember modules still have their own subdirectory under src
. You can remove the now empty Modules
directory.src
directory. Remember classes do not have their own subdirectory, so they reside on the root of src
. You can remove the now empty Classes
directory..php
instead of .class.php
. For example: MyModule.php
instead of MyModule.class.php
.namespace
directive at the top of the file. For example, if your module is called MyModule
, you should add this at the top of src/MyModule/MyModule.php
:ClassForMyModule
and is related to a module called MyModule
, move it to src/MyModule
and add this at the top of src/MyModule/ClassForMyModule.php
:composer.json
file: