PHP code example of tmonier / sylius-b2b-mcp-plugin
1. Go to this page and download the library: Download tmonier/sylius-b2b-mcp-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/ */
tmonier / sylius-b2b-mcp-plugin example snippets
Symfony\AI\McpBundle\McpBundle::class => ['all' => true],
Sylius\McpServerPlugin\SyliusMcpServerPlugin::class => ['all' => true],
Tmonier\SyliusB2bMcpPlugin\TmonierSyliusB2bMcpPlugin::class => ['all' => true],
final class ApprovedRegistrationChecker implements AccountUsabilityCheckerInterface
{
public function check(CustomerInterface $customer): AccountUsability
{
return $this->isApproved($customer) ? AccountUsability::usable() : AccountUsability::refused('registration_pending');
}
}