Skip to content

Instantly share code, notes, and snippets.

View kriswallsmith's full-sized avatar

Kris Wallsmith kriswallsmith

  • Portland, Oregon USA
  • 12:21 (UTC -07:00)
View GitHub Profile
@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')) {
}
}
}
<?php
class SplClassLoader
{
protected
$includePath = null,
$namespace = null,
$extension = '.php',
$namespaceSeparator = '\\';