Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symfony Kernel Injection For Bundle Loading #56

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f599087
An initial working version of the SymfonyKernel
dragoonis Mar 31, 2016
b5b9fe7
composer lock update
dragoonis May 6, 2016
a6e1206
Progress on booting the symfony kernel
dragoonis May 6, 2016
8629102
Working on symfony kernel secret config key registration
dragoonis May 6, 2016
659c111
registering kernel config
dragoonis May 6, 2016
76cb46e
Loading a .yml file. secret successfully stored
dragoonis May 6, 2016
f821b2e
Symfony bundles loading but configuration stage causing issues
dragoonis May 7, 2016
ae9c49d
Enabled TwigBundle
dragoonis May 7, 2016
ce04158
Removing FOSUserBundle bits
dragoonis May 7, 2016
6209546
Removing unncessary PPI autoload calls
dragoonis May 7, 2016
75b4d13
removing vars
dragoonis May 7, 2016
3206a85
full composer update
dragoonis May 7, 2016
0bb2dec
Adding a TestBundle
dragoonis May 7, 2016
51f3914
updating test bundle
dragoonis May 7, 2016
8cbcd04
Adding annotation registry loader
dragoonis May 7, 2016
895a26d
CS
dragoonis May 7, 2016
2d7ba6c
Moving symfony config files
dragoonis May 7, 2016
b699cf1
Cleanup of SF kernel code
dragoonis May 7, 2016
17d043b
FOSUserBundle work
dragoonis May 7, 2016
dc0c710
Overriding SF2 exception listener with PPI's one
dragoonis May 12, 2016
01976e2
Adding code that wipes out the SF2 created output buffer to make way …
dragoonis May 12, 2016
dbe388b
Having PPI call its own dispatch first, then fallback to an optional …
dragoonis May 12, 2016
c260b25
removing app->run() params. no longer needed
dragoonis May 12, 2016
935210f
Cleaning up SF2 kernel integration. Moving the SymfonyKernel into the…
dragoonis May 12, 2016
ed90ea3
Renaming symfony kernel loading files. Functional symfony app/sfconso…
dragoonis May 12, 2016
621c2b0
upgrading to symfony/symfony 2.7
dragoonis May 12, 2016
ee164c9
Removing docblocks
dragoonis May 26, 2016
04c1220
composer json fix
dragoonis May 26, 2016
68836e5
Moved symfony files to utils
dragoonis Jun 1, 2016
794acac
Creating the symfony_skeleton files
dragoonis Jun 1, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions app/config/dev
3 changes: 0 additions & 3 deletions app/config/dev/app.php

This file was deleted.

38 changes: 38 additions & 0 deletions bundles/TestBundle/Controller/TestController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?php

/*
* This file is part of the NelmioApiDocBundle.
*
* (c) Nelmio <hello@nelm.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace TestBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Response;
use Nelmio\ApiDocBundle\Annotation\ApiDoc;


class TestController extends Controller
{


/**
* @ApiDoc(
* resource=true,
* description="This is a description of your API method",
* filters={
* {"name"="a-filter", "dataType"="integer"},
* {"name"="another-filter", "dataType"="string", "pattern"="(foo|bar) ASC|DESC"}
* }
* )
*/
public function indexAction()
{
return new Response('<h1>Test is working</h1>');
}

}
26 changes: 26 additions & 0 deletions bundles/TestBundle/Entity/User.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?php

namespace TestBundle\Entity;

use FOS\UserBundle\Entity\User as BaseUser;
use Doctrine\ORM\Mapping as ORM;

/**
* @ORM\Entity
* @ORM\Table(name="fos_user")
*/
class User extends BaseUser
{
/**
* @ORM\Id
* @ORM\Column(type="integer")
* @ORM\GeneratedValue(strategy="AUTO")
*/
protected $id;

public function __construct()
{
parent::__construct();
// your own logic
}
}
3 changes: 3 additions & 0 deletions bundles/TestBundle/Resources/config/routing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TestBundle_index:
pattern: /test
defaults: { _controller: "TestBundle:Test:index" }
9 changes: 9 additions & 0 deletions bundles/TestBundle/TestBundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?php

namespace TestBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;

class TestBundle extends Bundle
{
}
22 changes: 20 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "The PPI Skeleton Application - A pre-built application around the PPI Framework. Lots of extra goodies",
"homepage": "http://www.ppi.io",
"license": "MIT",
"keywords": ["framework", "ppi", "symfony", "zend", "doctrine", "laravel", "fuelphp", "mongo", "pdo", "ppi", "skeletonapp", "bootstrap", "html5", "jquery", "mustache"],
"keywords": ["framework", "ppi", "symfony", "zend", "doctrine", "laravel"],
"type": "library",
"authors": [
{
Expand All @@ -21,7 +21,20 @@
],
"require": {
"ppi/framework": "^2.1",
"ppi/distribution-module": "dev-master"
"ppi/distribution-module": "dev-master",
"friendsofsymfony/user-bundle": "^1.3",
"nelmio/api-doc-bundle": "^2.12",
"symfony/swiftmailer-bundle": "^2.3",
"doctrine/orm": "^2.4",
"doctrine/doctrine-bundle": "^1.4",
"symfony/symfony": "2.7.*",

"symfony/validator": "2.7.*",
"symfony/security": "2.7.*",
"symfony/security-acl": "2.7.*",
"symfony/form": "2.7.*",
"symfony/twig-bundle": "2.7.*"

},
"scripts": {
"post-install-cmd": [
Expand All @@ -35,6 +48,11 @@
"PPI\\DistributionModule\\Composer\\ScriptHandler::installRequirementsFile"
]
},
"autoload": {
"psr-4": {
"TestBundle\\": "bundles/TestBundle/"
}
},
"extra": {
"ppi-app-dir": "app",
"ppi-web-dir": "public",
Expand Down