add wp-rocket

This commit is contained in:
nguyen dung
2022-02-18 19:09:35 +07:00
parent 39b8cb3612
commit 3110d00ee7
927 changed files with 271703 additions and 2 deletions

View File

@@ -0,0 +1,34 @@
<?php
namespace WP_Rocket\Engine\Container;
trait ContainerAwareTrait
{
/**
* @var \WP_Rocket\Engine\Container\ContainerInterface
*/
protected $container;
/**
* Set a container.
*
* @param \WP_Rocket\Engine\Container\ContainerInterface $container
* @return $this
*/
public function setContainer(ContainerInterface $container)
{
$this->container = $container;
return $this;
}
/**
* Get the container.
*
* @return \WP_Rocket\Engine\Container\ContainerInterface
*/
public function getContainer()
{
return $this->container;
}
}