Skip to content

Commit

Permalink
Initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
Eymeric Taelman committed Oct 9, 2012
1 parent 94f4aad commit b9fe261
Show file tree
Hide file tree
Showing 1,613 changed files with 139,368 additions and 0 deletions.
81 changes: 81 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# Bootstrap
app/bootstrap*

# Symfony directories
vendor/*
*/logs/*
*/cache/*
web/uploads/*
web/bundles/*
web/js/base_*
web/css/base_*
web/js/*/*_*

#Donnees d'import
src/BNS/App/FixtureBundle/Resources/data/Migration/*
src/BNS/App/FixtureBundle/Resources/logs/*

# BNS resources
/app/data/resources/*
# Public uploads
/web/uploads/*
# Configuration files
app/config/parameters.ini
# Secret files
app/config/secret_prod.yml
app/config/secret_test.yml
app/config/parameters_prod.yml

# Windows Commands
/*.bat

# Composer
composer.phar

# Eclipse
*.pydevproject
.project
.metadata
# bin/** - disabled because vendors & build_boostrap will not be commited
bin/propel-gen
bin/propel-gen.bat
tmp/**
tmp/**/*
*.tmp
*.bak
*.swp
*~.nib
local.properties
.classpath
.settings/
.loadpath

# Netbeans
nbproject
nbproject/*


# PHP Storm
.idea/*

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# CDT-specific
.cproject

# PDT-specific
.buildpath

# Propel generated files
app/propel
/src/BNS/App/*Bundle/Model/map
/src/BNS/App/*Bundle/Model/om
/src/BNS/Central/*Bundle/Model/map
/src/BNS/Central/*Bundle/Model/om

# GIT
*.orig
17 changes: 17 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Beneylu School

Copyright (C) 2012 Pixel-Cookers <http://www.pixel-cookers.com/>
Copyright (C) 2012 Atos Worldline <http://atosworldline.com>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
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
{
}
82 changes: 82 additions & 0 deletions app/AppKernel.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
<?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 Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
new JMS\AopBundle\JMSAopBundle(),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new Propel\PropelBundle\PropelBundle(),
new FOS\JsRoutingBundle\FOSJsRoutingBundle(),
new Knp\Bundle\MenuBundle\KnpMenuBundle(),
new JMS\SerializerBundle\JMSSerializerBundle($this),
new OldSound\RabbitMqBundle\OldSoundRabbitMqBundle(),
new Snc\RedisBundle\SncRedisBundle(),
);

// App Bundles
if (in_array($this->getEnvironment(), array('app_dev', 'app_test', 'app_prod'))) {
$bundles[] = new HWI\Bundle\OAuthBundle\HWIOAuthBundle();
$bundles[] = new Stfalcon\Bundle\TinymceBundle\StfalconTinymceBundle();
$bundles[] = new Vich\GeographicalBundle\VichGeographicalBundle();
$bundles[] = new Knp\Bundle\GaufretteBundle\KnpGaufretteBundle();
$bundles[] = new Knp\Bundle\SnappyBundle\KnpSnappyBundle();
$bundles[] = new BNS\App\CoreBundle\BNSAppCoreBundle();
$bundles[] = new BNS\App\AdminBundle\BNSAppAdminBundle();
$bundles[] = new BNS\App\MainBundle\BNSAppMainBundle();
$bundles[] = new BNS\App\FixtureBundle\BNSAppFixtureBundle();
$bundles[] = new BNS\App\NotificationBundle\BNSAppNotificationBundle();
$bundles[] = new BNS\App\TeamBundle\BNSAppTeamBundle();
$bundles[] = new BNS\App\ClassroomBundle\BNSAppClassroomBundle();
$bundles[] = new BNS\App\ProfileBundle\BNSAppProfileBundle();
$bundles[] = new BNS\App\SchoolBundle\BNSAppSchoolBundle();
$bundles[] = new BNS\App\MailerBundle\BNSAppMailerBundle();
$bundles[] = new BNS\App\HomeworkBundle\BNSAppHomeworkBundle();
$bundles[] = new BNS\App\GroupBundle\BNSAppGroupBundle();
$bundles[] = new BNS\App\HelloWorldBundle\BNSAppHelloWorldBundle();
$bundles[] = new BNS\App\ResourceBundle\BNSAppResourceBundle();
$bundles[] = new BNS\App\GPSBundle\BNSAppGPSBundle();
$bundles[] = new BNS\App\CalendarBundle\BNSAppCalendarBundle();
$bundles[] = new BNS\App\MessagingBundle\BNSAppMessagingBundle();
$bundles[] = new BNS\App\BlogBundle\BNSAppBlogBundle();
$bundles[] = new BNS\App\LiaisonBookBundle\BNSAppLiaisonBookBundle();
$bundles[] = new BNS\App\AutosaveBundle\BNSAppAutosaveBundle();
$bundles[] = new BNS\App\PropelBundle\BNSAppPropelBundle();
$bundles[] = new BNS\App\CommentBundle\BNSAppCommentBundle();
$bundles[] = new BNS\App\ModalBundle\BNSAppModalBundle();
$bundles[] = new BNS\App\MiniSiteBundle\BNSAppMiniSiteBundle();
$bundles[] = new BNS\App\TemplateBundle\BNSAppTemplateBundle();
$bundles[] = new BNS\App\RegistrationBundle\BNSAppRegistrationBundle();
$bundles[] = new BNS\App\DirectoryBundle\BNSAppDirectoryBundle();
$bundles[] = new BNS\App\UserBundle\BNSAppUserBundle();
$bundles[] = new BNS\App\GuideTourBundle\BNSAppGuideTourBundle();
}

if (in_array($this->getEnvironment(), array('app_dev', 'app_test'))) {
$bundles[] = new Symfony\Bundle\WebProfilerBundle\WebProfilerBundle();
$bundles[] = new Sensio\Bundle\DistributionBundle\SensioDistributionBundle();
$bundles[] = new Sensio\Bundle\GeneratorBundle\SensioGeneratorBundle();
$bundles[] = new WhiteOctober\PagerfantaBundle\WhiteOctoberPagerfantaBundle();
$bundles[] = new Behat\BehatBundle\BehatBundle();
}

return $bundles;
}

public function registerContainerConfiguration(LoaderInterface $loader)
{
$loader->load(__DIR__ . '/config/config_' . $this->getEnvironment() . '.yml');
}
}
16 changes: 16 additions & 0 deletions app/Resources/TwigBundle/views/Exception/error.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% extends '::base.html.twig' %}

{% block body %}
<div class="background-error"></div>
<div class="container container-fluid content-error">
<h1>Une erreur est (malheureusement) survenue</h1>
<p>Pas de panique, vous pouvez : </p>
<ul>
<li><a href="{{ path('home') }}">Revenir à la page d'accueil</a></li>
<li><a href="{{ path('disconnect_user') }}">Vous déconnecter puis vous reconnecter</a></li>
<li><a href="mailto:erreur@beneyluschool.com">Appeler à l'aide ! </a>(en précisant le contexte de votre erreur)</li>
</ul>

</div>
{% endblock %}

1 change: 1 addition & 0 deletions app/Resources/commands/cc.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php app/console cache:clear
1 change: 1 addition & 0 deletions app/Resources/commands/mc.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
php app/console rabbitmq:consumer -m n mailer
37 changes: 37 additions & 0 deletions app/Resources/doc/vhosts.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
NameVirtualHost *:80

<VirtualHost *:80>
ServerName www.beneyluschool3.dev

DocumentRoot "D:\Work\Beneyluschool3\web"
DirectoryIndex app_dev.php

<Directory "D:\Work\Beneyluschool3\web">
AllowOverride All
Allow from All
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app_dev.php [QSA,L]
</IfModule>

# <IfModule mod_expires.c>
# ExpiresActive On
# ExpiresDefault "access plus 10 days"
# ExpiresByType text/css "access plus 1 week"
# ExpiresByType text/plain "access plus 1 month"
# ExpiresByType image/gif "access plus 1 month"
# ExpiresByType image/png "access plus 1 month"
# ExpiresByType image/jpeg "access plus 1 month"
# ExpiresByType application/x-javascript "access plus 1 month"
# ExpiresByType application/javascript "access plus 1 week"
# ExpiresByType application/x-icon "access plus 1 year"
# </IfModule>

XSendFile on
XSendFilePath D:/Work/beneyluschool3/app/data/resources
XSendFilePath D:/Work/Beneyluschool3/app/data/resources
</Directory>

ErrorLog "D:\Work\Beneyluschool3\app\logs\apache_app_errors.log"
</VirtualHost>
16 changes: 16 additions & 0 deletions app/Resources/doc/vhosts_prod.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<VirtualHost *:80>
ServerName www.beneyluschool.net
DocumentRoot "/home/beneyluschool/web"
DirectoryIndex app.php
<Directory "/home/beneyluschool/web">
AllowOverride All
Allow from All
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app.php [QSA,L]
</IfModule>
XSendFile on
XSendFilePath /home/beneyluschool/web
</Directory>
</VirtualHost>
Binary file added app/Resources/java/yuicompressor.jar
Binary file not shown.
Loading

0 comments on commit b9fe261

Please sign in to comment.