This file contains hidden or 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 Application\MyBundle\Document; | |
| use Bundle\DoctrineUserBundle\Document\User as BaseUser; | |
| /** | |
| * @mongodb:Document(collection="users" ,repositoryClass="Application\MyBundle\Document\UserRepository") | |
| */ | |
| class User extends BaseUser |
This file contains hidden or 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 Application\MyBundle\Document; | |
| use Bundle\DoctrineUserBundle\Document\UserRepository as BaseUserRepository; | |
| class UserRepository extends BaseUserRepository | |
| { | |
| } |
This file contains hidden or 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
| ###FORM_LOGIN_AUTH | |
| security.config: | |
| encoders: | |
| Symfony\Component\Security\User\User: plaintext | |
| providers: | |
| main: | |
| users: | |
| foo: { password: bar, roles: ROLE_USER } | |
| firewalls: | |
| login: { pattern: /login, security: true, anonymous: true } |
This file contains hidden or 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
| if (!$this->container->hasDefinition($parent = $definition->getParent())) { | |
| if ($definition->isAbstract()) { | |
| return null; | |
| } | |
| throw new \RuntimeException(sprintf('The parent definition "%s" defined for definition "%s" does not exist.', $parent, $id)); | |
| } |
This file contains hidden or 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 Flock\MainBundle\Controller; | |
| use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
| use Flock\MainBundle\Form\EventForm; | |
| use Flock\MainBundle\Entity\Event; | |
| class DefaultController extends Controller | |
| { |
This file contains hidden or 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
| framework: | |
| #... | |
| session: | |
| default_locale: %locale% | |
| lifetime: 3600 | |
| auto_start: true | |
| storage_id: session.storage.pdo | |
| #... | |
| parameters: |
This file contains hidden or 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
| CREATE TABLE `session` ( | |
| `sess_id` varchar(255) NOT NULL, | |
| `sess_data` text NOT NULL, | |
| `sess_time` int(11) NOT NULL, | |
| PRIMARY KEY (`sess_id`), | |
| UNIQUE KEY `sess_id_idx` (`sess_id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; |
This file contains hidden or 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
| parameters: | |
| pdo.options: [] | |
| pdo.db_options: | |
| db_table: session | |
| services: | |
| session.storage.pdo: | |
| class: Symfony\Component\HttpFoundation\SessionStorage\PdoSessionStorage | |
| arguments: | |
| - @doctrine.dbal.default.wrapped_connection |
This file contains hidden or 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
| { | |
| "name": "friendsofsymfony/twitter-bundle", | |
| "type": "symfony-bundle", | |
| "description": "Symfony FOSTwitterBundle", | |
| "keywords": ["Twitter authentication"], | |
| "homepage": "http://friendsofsymfony.github.com", | |
| "license": "MIT", | |
| "authors": [ | |
| { | |
| "name": "FriendsOfSymfony Community", |
This file contains hidden or 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/AppKernel.php | |
| public function registerContainerConfiguration(LoaderInterface $loader) | |
| { | |
| $envParameters = $this->getEnvParameters(); | |
| if (@$envParameters['domain.name'] == 'domain2') { | |
| $loader->load(__DIR__.'/config/domain2/config_'.$this->getEnvironment().'.yml'); | |
| } else { |