PHP code example of monsieurbiz / sylius-settings-plugin
1. Go to this page and download the library: Download monsieurbiz/sylius-settings-plugin 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/ */
monsieurbiz / sylius-settings-plugin example snippets
return [
//..
MonsieurBiz\SyliusSettingsPlugin\MonsieurBizSyliusSettingsPlugin::class => ['all' => true],
];
use MonsieurBiz\SyliusSettingsPlugin\Provider\SettingsProviderInterface;
//...
private SettingsProviderInterface $settingsProvider;
public function __construct(SettingsProviderInterface $settingsProvider)
{
$this->settingsProvider = $settingsProvider;
}
public function myAwesomeMethod()
{
return $this->settingsProvider->getSettingValue('app.default', 'demo_message')
}