PHP code example of tapestry-cloud / asset-plugin
1. Go to this page and download the library: Download tapestry-cloud/asset-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/ */
tapestry-cloud / asset-plugin example snippets
// ...
'plugins' => [
'asset_manifest_path' => __DIR__ . '/rev-manifest.json'
],
// ...
use Tapestry\Modules\Kernel\KernelInterface;
class Kernel implements KernelInterface
{
/**
* @var Tapestry
*/
private $tapestry;
public function __construct(Tapestry $tapestry)
{
$this->tapestry = $tapestry;
}
/**
* This method is executed by Tapestry when the Kernel is registered.
*
* @return void
*/
public function register()
{
// Use project autoloader