atelierspierrot/service-container

View on GitHub
.sami.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
/**
 * Application documentation builder
 *
 * See http://github.com/fabpot/Sami
 *
 * To build doc, run:
 *     $ php vendor/sami/sami/sami.php render sami.config.php
 *
 * To update it, run:
 *     $ php vendor/sami/sami/sami.php update sami.config.php
 *
 */

use Sami\Sami;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->notName('SplClassLoader.php')
    ->in(__DIR__.'/src')
;

$options = array(
    'title'                => 'Service Container',
    'build_dir'            => __DIR__.'/phpdoc',
    'cache_dir'            => __DIR__.'/../tmp/cache/service-container',
    'default_opened_level' => 2,
);

return new Sami($iterator, $options);