<?php

use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('Resources')
    ->in($dir = 'src');

$versions = GitVersionCollection::create($dir)
    ->add('develop', 'develop branch')
    ->add('master', 'master branch')
    ->addFromTags('3.*')
    ->addFromTags('4.*');

return new Sami($iterator, array(
    'theme' => 'default',
    'versions' => $versions,
    'title' => 'AuthBucket\Bundle\OAuth2Bundle API',
    'build_dir' => __DIR__.'/build/sami/%version%',
    'cache_dir' => __DIR__.'/build/cache/sami/%version%',
    'include_parent_data' => false,
    'default_opened_level' => 3,
]);

<?php

use Sami\Sami;
use Sami\Version\GitVersionCollection;
use Symfony\Component\Finder\Finder;

$iterator = Finder::create()
    ->files()
    ->name('*.php')
    ->exclude('Resources')
    ->in($dir = 'src');

$versions = GitVersionCollection::create($dir)
    ->add('develop', 'develop branch')
    ->add('master', 'master branch')
    ->addFromTags('3.*')
    ->addFromTags('4.*');

return new Sami($iterator, [
    'theme' => 'default',
    'versions' => $versions,
    'title' => 'AuthBucket\Bundle\OAuth2Bundle API',
    'build_dir' => __DIR__.'/build/sami/%version%',
    'cache_dir' => __DIR__.'/build/cache/sami/%version%',
    'include_parent_data' => false,
    'default_opened_level' => 3,
]);

--- 
+++ 
@@ -16,7 +16,7 @@
     ->addFromTags('3.*')
     ->addFromTags('4.*');
 
-return new Sami($iterator, [
+return new Sami($iterator, array(
     'theme' => 'default',
     'versions' => $versions,
     'title' => 'AuthBucket\Bundle\OAuth2Bundle API',
Update Sami theme as default.
