Skip to content

Instantly share code, notes, and snippets.

View kriswallsmith's full-sized avatar

Kris Wallsmith kriswallsmith

  • Portland, Oregon USA
  • 00:41 (UTC -08:00)
View GitHub Profile
<?php
class SplClassLoader
{
protected
$includePath = null,
$namespace = null,
$extension = '.php',
$namespaceSeparator = '\\';
@kriswallsmith
kriswallsmith / gist:1155296
Created August 18, 2011 21:34
CmsBlockNodeVisitor getBlockName
private function getBlockName(\Twig_NodeInterface $node, \Twig_Environment $env)
{
if ($node instanceof \Twig_Node_Expression_Function) {
if ('cms_block' == $node->getNode('name')->getAttribute('name')) {
}
}
}