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 | |
services: | |
session: | |
class: COil\QuestBundle\Lib\mySession | |
arguments: | |
- @session.storage | |
- %locale% |
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/src/COil/QuestBundle/Lib/mySession.php | |
namespace COil\QuestBundle\Lib; | |
use Symfony\Component\HttpFoundation\Session; | |
/** | |
* mySession object. | |
*/ |
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 COil\Jobeet2Bundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; | |
use Symfony\Component\Yaml\Yaml; | |
abstract class LoadJobeet2Data extends AbstractFixture implements ContainerAwareInterface |
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/YourNameSpace/YourBundle/Datafixtures/fixtures/categories.yml | |
Category: | |
design: | |
name: Design | |
programming: | |
name: Programming | |
manager: | |
name: Manager | |
administrator: | |
name: Administrator |
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 COil\Jobeet2Bundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use COil\Jobeet2Bundle\DataFixtures\ORM\LoadJobeet2Data; | |
use COil\Jobeet2Bundle\Entity\Category as Category; |
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/YourNameSpace/YourBundle/Datafixtures/fixtures/jobs.yml | |
Job: | |
job_sensio_labs: | |
Category: programming | |
type: full-time | |
company: Sensio Labs | |
logo: sensio-labs.gif | |
url: http://www.sensiolabs.com/ | |
position: Web Developer | |
location: Paris, France |
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 COil\Jobeet2Bundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use COil\Jobeet2Bundle\DataFixtures\ORM\LoadJobeet2Data; | |
use COil\Jobeet2Bundle\Entity\Job as Job; | |
class LoadJobData extends LoadJobeet2Data implements OrderedFixtureInterface |
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
<div> | |
<a href="{{ job.url }}"> | |
<img src="{{ app.request.scheme ~ '://' ~ app.request.host }}{{ asset(job.webPath) }}" | |
alt="{{ job.company }} logo" /> | |
</a> | |
</div> | |
--> | |
<div> |
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
#!/bin/bash | |
clear; | |
echo "> Update Symfony2 by getting the last vendors files and additional deps" | |
date | |
# Testing arguments | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then |
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
#!/bin/bash | |
clear; | |
echo "> Generating the Doctrine files for a given Entity, be careful that the entities are camel-cased" | |
# Testing arguments | |
EXPECTED_ARGS=1 | |
E_BADARGS=65 | |
if [ $# -ne $EXPECTED_ARGS ] | |
then | |
echo "Usage: ./`basename $0` MyEntity" |
OlderNewer