PHP code example of pascalheidmann / mago-jms-serializer
1. Go to this page and download the library: Download pascalheidmann/mago-jms-serializer 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/ */
pascalheidmann / mago-jms-serializer example snippets
declare(strict_types=1);
use Mago\JmsSerializerPlugin\JmsPropertyPlugin;
use Mago\Sdk\Extension;
use Mago\Sdk\Worker;
'1.0.0',
analyzerPlugins: [new JmsPropertyPlugin()],
)))->run();
new JmsPropertyPlugin(namespacePrefixes: ['App\\'])
(new Worker(new Extension(
identifier: 'my-project/mago-extensions',
name: 'My Project Mago Extensions',
version: '1.0.0',
analyzerPlugins: [
new JmsPropertyPlugin(),
new SomeOtherPlugin(),
],
)))->run();