kunstmaan/bundles-cms
Kunstmaan CMS is a full-featured, multilingual CMS built on the Symfony full-stack framework. It offers page and form assembly, versioning, workflow, translation tools, and media management, plus integrations with community bundles.
Before CMS version 3.1 we used a the service() method in a specific entity to write any custom controller logic. This was a poor solution. We decided to refactor this.
SlugActionInterface to the entity.getControllerAction methodclass HomePage implements SlugActionInterface
{
...
public function getControllerAction()
{
return AppBundle:HomePageController:FooMethod;
// or return a service.
return appbundle.controller.home:fooAction;
}
}
namespace App\Bundle\Controller;
class HomePageController extends Controller
{
...
/**
* Return a new Response or just an array with the data for your pagetemplate.
*/
public function fooAction(Request $request)
{
...
}
}
How can I help you explore Laravel packages today?