Git Product home page Git Product logo

multipleappkernelbundle's People

Contributors

cedriclombardot avatar qbarbosa avatar vbardales avatar victor-paumier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

multipleappkernelbundle's Issues

Is this repo deprecated

Hi looks like there wasn't change for this repository for a long time. Is this repo deprecated?

AppUrlGenerator: appName gets replaced in the path

Hi @vbardales !
First of all, thank you for your bundle it works great!

I noticed a case which can be problematic in KernelBundle/Routing/Generator.php

To generate the var $cache_dir the following code is used :

// Load the route generator for app 
$cache_dir = str_replace($this->container->getParameter('kernel.name'), $appName, $this->container->getParameter('kernel.cache_dir'));

We encountered a problem in production since we have one of our app which is called tv and in our path we have /vhosts/mysite.tv/www/... so the .tvgot replaced by this line !

We figured out a quick fix, here it is :

// Load the route generator for app
$kernelName = '/'.$this->container->getParameter('kernel.name').'/';
$appName = '/'.$appName.'/';
$cache_dir = str_replace($kernelName, $appName, $this->container->getParameter('kernel.cache_dir'));

We just added slashes before and after appName to avoid replacing it by mistake in the full path.

This is not the most elegant solution but if fixes the problem for now and prevents our visitors to get an error 500.

I am opening a pull request with my fix but if you have another idea to fix this, suggestions are welcomed !

Structure Quesion

How do you structure your 'web' folder please?

I struggle to separate the logic for specific sites there...

Your help is much appreciated!!

PS. Do you possibly have a 'sandbox' project?

Thanks
Paul

Incompatible with symfony 2.1.9-dev

Found an incompatibility with this bundle and Symfony 2.1.9-dev installed via composer.

The cache path for the routing file was changed, from

appprodUrlGenerator.php -> appProdUrlGenerator.php

I had to change the following in Routing/Generator.php
ย ```
--- a/Routing/Generator.php
+++ b/Routing/Generator.php
@@ -56,7 +56,8 @@ class Generator
{
// Load the route generator for app
$cache_dir = str_replace($this->container->getParameter('kernel.name'), $appName, $this->container->getParameter('kernel.cache_dir'));

  •    $generatorClassName = $appName.$this->container->getParameter('kernel.environment').'UrlGenerator';
    
  •    $generatorClassName = $appName.ucfirst($this->container->getParameter('kernel.environment')).'UrlGenerator';
    

This is the comit that I think brakes it:
https://github.com/symfony/FrameworkBundle/commit/38602e18e219631e556fe1c700dca022a3f2cbd2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.