Skip to content

Commit

Permalink
basic setup of symfony uplication
Browse files Browse the repository at this point in the history
  • Loading branch information
VFertak committed Jul 30, 2013
1 parent f3c2d34 commit a93c3c7
Show file tree
Hide file tree
Showing 62 changed files with 13,638 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/bin
.idea/
/nbproject
/build/
build.xml
/doc/
/app/cache/*
/app/logs/*
/app/tmp
/web/bundles
/web/css
/web/js
.settings/*
.buildpath
.project
/*.tmproj
cscope.out
/vendor/*
app/*.cache
app/phpunit.xml
test/phpunit.xml
tests/*Bundle*
/gitflow
.DS_Store
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: php

php:
- 5.3.3
- 5.3
- 5.4

before_script: composer install -n

script: phpunit -c app
1 change: 1 addition & 0 deletions app/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
deny from all
9 changes: 9 additions & 0 deletions app/AppCache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

require_once __DIR__.'/AppKernel.php';

use Symfony\Bundle\FrameworkBundle\HttpCache\HttpCache;

class AppCache extends HttpCache
{
}
35 changes: 35 additions & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?php

use Symfony\Component\HttpKernel\Kernel;
use Symfony\Component\Config\Loader\LoaderInterface;

class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
new Symfony\Bundle\SecurityBundle\SecurityBundle(),
new Symfony\Bundle\TwigBundle\TwigBundle(),
new Symfony\Bundle\MonologBundle\MonologBundle(),
new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new VFE\MyTownBundle\VFEMyTownBundle(),
new Snc\RedisBundle\SncRedisBundle()
);

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
}

return $bundles;
}

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}
}
Binary file added app/Resources/java/yuicompressor-2.4.7.jar
Binary file not shown.
23 changes: 23 additions & 0 deletions app/Resources/views/base.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html ng-app>
{#<html ng-app="demoapp">#}
<head>
<meta charset="UTF-8" />
<title>{% block title %}My Town!{% endblock %}</title>
{% block stylesheets %}{% endblock %}
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
<script src="http://cdn.leafletjs.com/leaflet-0.6.4/leaflet.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
{#'bundles/vfemytown/js/angular-leaflet-directive.min.js'#}
{% javascripts filter='?yui_js' output='js/*.js'
'bundles/vfemytown/js/angular.min.js'
'bundles/vfemytown/bootstrap/js/bootstrap.min.js'
%}
<script src="{{ asset_url }}"></script>
{% endjavascripts %}
</head>
<body>
{% block body %}{% endblock %}
{% block javascripts %}{% endblock %}
</body>
</html>
Loading

0 comments on commit a93c3c7

Please sign in to comment.