Skip to content

Commit

Permalink
pagorad
Browse files Browse the repository at this point in the history
  • Loading branch information
marfillaster committed Aug 5, 2011
1 parent 62d3378 commit dd74c72
Show file tree
Hide file tree
Showing 8 changed files with 68 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -8,3 +8,4 @@ vendor/
.buildpath
.project
.settings
app/config/parameters.ini
20 changes: 19 additions & 1 deletion app/AppKernel.php
Expand Up @@ -17,20 +17,38 @@ public function registerBundles()
new Symfony\Bundle\AsseticBundle\AsseticBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new JMS\SecurityExtraBundle\JMSSecurityExtraBundle(),
new Symfony\Bundle\DoctrinePHPCRBundle\DoctrinePHPCRBundle(),
new Marfs\CRMBundle\MarfsCRMBundle(),
);

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

return $bundles;
}

public function registerContainerConfiguration(LoaderInterface $loader)
{
if (file_exists(__DIR__.'/config/parameters.ini')) {
$loader->load(__DIR__.'/config/parameters.ini');
} else {
$loader->load(__DIR__.'/config/pagoda.parameters.ini');
}

$loader->load(__DIR__.'/config/config_'.$this->getEnvironment().'.yml');
}

protected function getContainerBaseClass()
{
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
return '\JMS\DebuggingBundle\DependencyInjection\TraceableContainer';
}

return parent::getContainerBaseClass();
}
}
4 changes: 4 additions & 0 deletions app/autoload.php
Expand Up @@ -14,6 +14,10 @@
'Monolog' => __DIR__.'/../vendor/monolog/src',
'Assetic' => __DIR__.'/../vendor/assetic/src',
'Metadata' => __DIR__.'/../vendor/metadata/src',
'PHPCR' => __DIR__.'/../vendor/phpcr/src',
'Jackalope' => __DIR__.'/../vendor/jackalope/src',
'Doctrine\\ODM\\PHPCR' => __DIR__.'/../vendor/phpcr-odm/lib',
'JMS' => __DIR__.'/../vendor/bundles',
));
$loader->registerPrefixes(array(
'Twig_Extensions_' => __DIR__.'/../vendor/twig-extensions/lib',
Expand Down
18 changes: 17 additions & 1 deletion app/config/config.yml
@@ -1,7 +1,8 @@
imports:
- { resource: parameters.ini }
- { resource: security.yml }



framework:
#esi: ~
#translator: { fallback: en }
Expand Down Expand Up @@ -41,12 +42,27 @@ doctrine:
dbname: %database_name%
user: %database_user%
password: %database_password%
unix_socket: %database_socket%
charset: UTF8

orm:
auto_generate_proxy_classes: %kernel.debug%
auto_mapping: true

doctrine_phpcr:
# configure the PHPCR session
session:
backend:
url: http://localhost:8080/server/
type: jackrabbit
workspace: default
username: ''
password: ''
# enable the ODM layer
odm:
auto_mapping: true


# Swiftmailer Configuration
swiftmailer:
transport: %mailer_transport%
Expand Down
7 changes: 4 additions & 3 deletions app/config/parameters.ini.dst
Expand Up @@ -5,9 +5,10 @@
database_driver = pdo_mysql
database_host = localhost
database_port =
database_name = symfony
database_user = root
database_password =
database_name = %database.name%
database_user = %database.user%
database_password = %database.password%
database_socket = %database.socket%

mailer_transport = smtp
mailer_host = localhost
Expand Down
5 changes: 5 additions & 0 deletions app/config/routing.yml
@@ -1,3 +1,8 @@
MarfsCRMBundle:
resource: "@MarfsCRMBundle/Controller/"
type: annotation
prefix: /

# Internal routing configuration to handle ESI
#_internal:
# resource: "@FrameworkBundle/Resources/config/routing/internal.xml"
Expand Down
24 changes: 12 additions & 12 deletions app/config/routing_dev.yml
@@ -1,15 +1,15 @@
_welcome:
pattern: /
defaults: { _controller: AcmeDemoBundle:Welcome:index }

_demo_secured:
resource: "@AcmeDemoBundle/Controller/SecuredController.php"
type: annotation

_demo:
resource: "@AcmeDemoBundle/Controller/DemoController.php"
type: annotation
prefix: /demo
#_welcome:
# pattern: /
# defaults: { _controller: AcmeDemoBundle:Welcome:index }
#
#_demo_secured:
# resource: "@AcmeDemoBundle/Controller/SecuredController.php"
# type: annotation
#
#_demo:
# resource: "@AcmeDemoBundle/Controller/DemoController.php"
# type: annotation
# prefix: /demo

_assetic:
resource: .
Expand Down
8 changes: 6 additions & 2 deletions deps
Expand Up @@ -64,9 +64,13 @@
[jackalope]
git=git://github.com/jackalope/jackalope.git

[phpcd-odm]
git=git://github.com/doctrine/phpcd-odm.git
[phpcr-odm]
git=git://github.com/doctrine/phpcr-odm.git

[DoctrinePHPCRBundle]
git=git://github.com/symfony-cmf/DoctrinePHPCRBundle.git
target=/bundles/Symfony/Bundle/DoctrinePHPCRBundle

[JMSDebuggingBundle]
git=https://github.com/schmittjoh/JMSDebuggingBundle.git
target=/bundles/JMS/DebuggingBundle

0 comments on commit dd74c72

Please sign in to comment.