This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/config/config.yml | |
imports: | |
- { resource: parameters.yml } | |
- { resource: security.yml } | |
- { resource: "@AcmeTestBundle/Resources/config/services.yml" } | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# src/Acme/TestBundle/Resources/config/services.yml | |
# Parameter | |
parameters: | |
acme_example.greeter.text: "Hello" | |
# Services | |
services: | |
acme_test.greeter: | |
class: Acme\TestBundle\classes\AcmeGreeter | |
arguments: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# src/Acme/TestBundle/classes/AcmeGreeter.php | |
namespace Acme\TestBundle\classes; | |
class AcmeGreeter | |
{ | |
protected $text = ''; | |
public function __construct($text) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class AcmeElement extends \ContentElement | |
{ | |
/** | |
* Template | |
* @var string | |
*/ | |
protected $strTemplate = 'ce_esit_default'; | |
/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# src/Acme/TestBundle/classes/AcmeMultiGreeter.php | |
namespace Acme\TestBundle\classes; | |
class AcmeMultiGreeter | |
{ | |
protected $greeter = null; | |
protected $count = 0; | |
public function __construct(Acme\TestBundle\classes\AcmeGreeter $greeter, $count) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# src/Acme/TestBundle/Resources/config/services.yml | |
# Parameter | |
parameters: | |
acme_example.greeter.text: "Hello" | |
acme_example.greeter.count: 10 | |
# Services | |
services: | |
acme_test.greeter: | |
class: Acme\TestBundle\classes\AcmeGreeter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> php app/console debug:container |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"require": { | |
# ... | |
"Doctrine/ORM": "^2.5", | |
"doctrine/data-fixtures": "1.0.*", | |
"doctrine/dbal": "~2.4", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Doctrine configuration | |
doctrine: | |
dbal: | |
default_connection: default | |
connections: | |
default: | |
driver: pdo_mysql | |
host: "%database_host%" | |
port: "%database_port%" | |
user: "%database_user%" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Acme\TestBundle\Entity; | |
use \Doctrine\ORM\Mapping as ORM; | |
/** | |
* Class TlAcmeArea | |
* | |
* @ORM\Entity | |
* @ORM\Table(name="tl_acme_area") |
OlderNewer