Skip to content

Commit fa74642

Browse files
committed
Init benchmark
1 parent 65e6f84 commit fa74642

31 files changed

+3904
-1
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/web/bundles/
2+
/app/bootstrap.php.cache
3+
/app/cache/*
4+
/app/config/parameters.yml
5+
/app/logs/*
6+
!app/cache/.gitkeep
7+
!app/logs/.gitkeep
8+
/build/
9+
/vendor/
10+
/bin/
11+
/.idea/

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
# symfony-2-8-benchmark
1+
2.8
2+
===
3+
4+
A Symfony project created on October 9, 2017, 3:28 pm.

app/.htaccess

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<IfModule mod_authz_core.c>
2+
Require all denied
3+
</IfModule>
4+
<IfModule !mod_authz_core.c>
5+
Order deny,allow
6+
Deny from all
7+
</IfModule>

app/AppCache.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?php
2+
3+
use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;
4+
5+
class AppCache extends HttpCache
6+
{
7+
}

app/AppKernel.php

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?php
2+
3+
use Symfony\Component\HttpKernel\Kernel;
4+
use Symfony\Component\Config\Loader\LoaderInterface;
5+
6+
class AppKernel extends Kernel
7+
{
8+
public function registerBundles()
9+
{
10+
$bundles = array(
11+
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12+
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
13+
new Symfony\Bundle\TwigBundle\TwigBundle(),
14+
new Symfony\Bundle\MonologBundle\MonologBundle(),
15+
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
16+
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
17+
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
18+
new PHPBenchmarks\BenchmarkBundle\BenchmarkBundle(),
19+
);
20+
21+
return $bundles;
22+
}
23+
24+
public function registerContainerConfiguration(LoaderInterface $loader)
25+
{
26+
$loader->load($this->getRootDir().'/config/config_'.$this->getEnvironment().'.yml');
27+
}
28+
}

0 commit comments

Comments
 (0)