-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added handles to esi url
- Loading branch information
Showing
6 changed files
with
70 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace ConVarnish\Controller; | ||
|
||
use Zend\ServiceManager\FactoryInterface; | ||
use Zend\ServiceManager\ServiceLocatorInterface; | ||
|
||
/** | ||
* @package ConVarnish | ||
* @author Cornelius Adams (conlabz GmbH) <cornelius.adams@conlabz.de> | ||
*/ | ||
class EsiControllerFactory implements FactoryInterface | ||
{ | ||
public function createService(ServiceLocatorInterface $serviceLocator) | ||
{ | ||
$controller = new EsiController(); | ||
return $controller; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,25 @@ | ||
<?php | ||
use ConLayout\Layout\LayoutInterface; | ||
$blockId = LayoutInterface::BLOCK_ID_VAR; | ||
$esiUrl = $this->esiUrl($this->{$blockId}, $this->__HANDLES__); | ||
?> | ||
<esi:include src="<?= $this->esiUrl($this->{$blockId}) ?>"/> | ||
<?php if ($this->__DEBUG__): ?> | ||
<!-- | ||
[ ESI START: <?= $this->{$blockId} ?> ] | ||
[ TTL: <?= $this->__TTL__ ?> ] | ||
<?php if (count($this->__HANDLES__)): ?> | ||
[ Handles: <?= implode(', ', $this->__HANDLES__) ?> ] | ||
<?php endif ?> | ||
<?php if (count($this->__TAGS__)): ?> | ||
[ Ban-Tags: <?= implode(', ', $this->__TAGS__) ?> ] | ||
<?php endif ?> | ||
[ Ban-Url: <?= $esiUrl ?> ] | ||
--> | ||
<?php endif; ?> | ||
<esi:include src="<?= $esiUrl ?>"/> | ||
<esi:remove> | ||
<?= $this->content ?> | ||
</esi:remove> | ||
<?php if ($this->__DEBUG__): ?> | ||
<!-- [ ESI STOP: <?= $this->{$blockId} ?> ] --> | ||
<?php endif; ?> |