1. Go to this page and download the library: Download fucodo/registry library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
fucodo / registry example snippets
namespace Vendor\Project\Controller;
/*
* This file is part of the SBS.LaPo.Helparea package.
*/
use fucodo\registry\Domain\Repository\RegistryEntryRepository;
use Neos\Flow\Annotations as Flow;
use Neos\Flow\Mvc\Controller\ActionController;
use Vendor\Project\Domain\Model\HelpMessage;
class EditorController extends ActionController
{
/**
* @Flow\Inject
* @var RegistryEntryRepository
*/
protected $registry;
/**
* @return void
*/
public function indexAction()
{
$this->view->assign('helpMessage', $this->registry->getValue('Vendor.Project', 'HelpMessage', new HelpMessage()));
}
}