Sha256: 21e619b6f929400421762e0fea19da8c4bb4bcaf844c2b281d42ce4db4baf450

Contents?: true

Size: 499 Bytes

Versions: 10

Compression:

Stored size: 499 Bytes

Contents

<?php

namespace MtHaml\Target;

use MtHaml\NodeVisitor\PhpRenderer;
use MtHaml\Environment;

class Php extends TargetAbstract
{
    public function __construct(array $options = array())
    {
        parent::__construct($options + array(
            'midblock_regex' => '~else\b|else\s*if\b|catch\b~A',
        ));
    }

    public function getDefaultRendererFactory()
    {
        return function (Environment $env, array $options) {
            return new PhpRenderer($env);
        };
    }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
guard-mthaml-0.4.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.3.1 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.3.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.5 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.4 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.3 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.2 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.1 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.2.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php
guard-mthaml-0.1.0 vendor/mthaml/mthaml/lib/MtHaml/Target/Php.php