Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

[ENHANCEMENT] Refactored kernel structure #130

Merged
merged 17 commits into from
Aug 8, 2014

Conversation

dantleech
Copy link
Contributor

Refactored kernel structure.

app
├── AbstractKernel.php
├── AdminKernel.php
├── autoload.php
├── bootstrap.php.cache
├── cache
│   ├── admin
│   │   └── dev
│   └── website
│       └── dev
├── check.php
├── config
│   ├── admin
│   │   ├── config_dev.yml
│   │   ├── config_prod.yml
│   │   ├── config_test.yml
│   │   ├── config.yml
│   │   ├── routing_dev.yml
│   │   ├── routing.yml
│   │   └── security.yml
│   ├── config.yml
│   ├── parameters.yml
│   ├── parameters.yml.dist
│   ├── phpcr_doctrine_dbal.yml.dist
│   ├── phpcr_jackrabbit.yml.dist
│   ├── phpcr.yml
│   └── website
│       ├── config_dev.yml
│       ├── config_prod.yml
│       ├── config_test.yml
│       ├── config.yml
│       ├── routing_dev.yml
│       ├── routing.yml
│       └── security.yml
├── console
├── logs
│   └── dev.log
├── phpunit.xml.dist
├── Resources
│   ├── templates
│   │   ├── complex.xml.dist
│   │   ├── default.xml
│   │   ├── default.xml.dist
│   │   ├── example.xml
│   │   ├── example.xml.dist
│   │   ├── location.xml
│   │   ├── overview.xml
│   │   └── overview.xml.dist
│   └── webspaces
│       ├── sulu.io.xml
│       └── sulu.io.xml.dist
├── SymfonyRequirements.php
├── webconsole
├── WebsiteCache.php
└── WebsiteKernel.php

12 directories, 42 files

Tasks:

  • PHP Docs
  • Kernel parameter
  • Check if documentation needs updating
  • gather feedback for my changes

Informations:

Q A
Tests pass? no
Fixed tickets -
Doc -


protected function getContext()
{
if (null === $this->context) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can make "context" a kernel parameter that willl automatically be available in the dependency injection container. I believe.

@danrot danrot changed the title [WIP] Refactored kernel structure [ENHANCEMENT][WIP] Refactored kernel structure Jul 29, 2014
@danrot danrot changed the title [ENHANCEMENT][WIP] Refactored kernel structure [WIP][ENHANCEMENT] Refactored kernel structure Jul 29, 2014
@dantleech
Copy link
Contributor Author

Updatred. Porbley some conflict with ContentBUndle

@dantleech
Copy link
Contributor Author

@danrot this should be good now, note you will need the referenced PRs above.. i.e.

https://github.com/sulu-cmf/SuluMediaBundle/issues/54
sulu/sulu#167

@danrot danrot changed the title [WIP][ENHANCEMENT] Refactored kernel structure [ENHANCEMENT] Refactored kernel structure Aug 8, 2014
{
$bundles = parent::registerBundles();
$bundles[] = new Symfony\Bundle\SecurityBundle\SecurityBundle();
$bundles[] = new Bazinga\Bundle\HateoasBundle\BazingaHateoasBundle();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dantleech Would you really put that into the AdminKernel? If some parts of the API are exposed on the website also, this bundle will probably also be needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will move to Abstract

@danrot danrot merged commit 0a0d2de into develop Aug 8, 2014
@danrot danrot deleted the feature/refactor-kernel-organization branch August 8, 2014 14:11
dantleech added a commit to sulu/sulu that referenced this pull request Aug 14, 2014
dantleech added a commit to sulu/sulu that referenced this pull request Oct 31, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants