PHP code example of wpfulcrum / container
1. Go to this page and download the library: Download wpfulcrum/container 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/ */
wpfulcrum / container example snippets
$concreteConfig = [
'autoload' => true,
'concrete' => function ($container) {
$configObj = new Config(YOURPLUGIN_PATH . '/config/post-type/portfolio.php');
return new PostType(
$configObj,
$configObj->postTypeName,
new PostTypeSupports($configObj)
);
},
];