Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8706625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:39:33+00:00 2026-06-13T03:39:33+00:00

I’m trying to follow this article: http://fabien.potencier.org/article/62/create-your-own-framework-on-top-of-the-symfony2-components-part-12 Also looking at HttpKernel https://github.com/symfony/HttpKernel And I’m

  • 0

I’m trying to follow this article:

http://fabien.potencier.org/article/62/create-your-own-framework-on-top-of-the-symfony2-components-part-12

Also looking at HttpKernel
https://github.com/symfony/HttpKernel

And I’m quite confused. It seems to me that the Kernel is really something much more than the HttpKernel class here, and even the standard Symfony app.php has

$kernel = new AppKernel('prod', false);
$kernel->loadClassCache();

//$kernel = new AppCache($kernel);
$request = Request::createFromGlobals();
$response = $kernel->handle($request);

The Kernel, in turns, will call the HttpKernel->handle() within $kernel->handle($request) anyhow; plus it also seems to be taking care of loading bundles as well?

However, when the kernel creates the service container through boot() within handle() it also compile the container making it impossible to add more parameters and services.

So I guess my questions are:

  1. Is there any specific reason that in the tutorial the Framework class extends HttpKernel instead of Kernel?
  2. Should I also follow suit? Or should I use Kernel as my core. And if so, how do I get around the compile() issue? I do have parameters and services I have to add, how do I handle?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:39:36+00:00Added an answer on June 13, 2026 at 3:39 am

    The Kernel is the outermost shell of your application. It is used in Symfony full-stack to configure the debug mode and tie together bundles, classmap autoloading, container creation. Anything that is “global” to the application is configured in here. It also wraps an HttpKernel instance for convenience, and delegates all calls to it.

    The HttpKernel manages the request/response lifecycle. It is a standalone class that dispatches events on an event dispatcher. You modify it’s behaviour by adding listeners which respond to those events. Thus, it is not at all application specific. The configuration is what a particular instance of the HttpKernel specific to your application.

    Let’s talk about container compilation. The container is compiled. This compilation process applies some optimizations to it, and also adds some functionality (modifying the container based on tags). Once it is compiled, it cannot be modified (modifications would break those optimizations). When you have a compiled container, you can dump it to disk. By using the PhpDumper you can dump it to a generated PHP class which is a lot more performant than building it up every time.

    Is there any specific reason that in the tutorial the Framework class extends HttpKernel instead of Kernel?

    Yes. The tutorial is on how to build your own framework with Symfony2 components. Kernel is the outer shell of the Symfony2 full stack framework. If you use it, you’re not using your own framework. You’re using Symfony2 full stack.

    Should I also follow suit?

    It depends. If you want the things Kernel provides, you might as well just use Symfony full stack. But then you’re not creating your own framework.

    And if so, how do I get around the compile() issue? I do have parameters and services I have to add, how do I handle?

    If you want a compiled container, you’ll need to add those parameters and services as extensions (bundles allow you to tie in extensions), and those extensions register services and parameters. This happens before the compilation step, so that the definitions can then be compiled and dumped to a file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to create an if statement in PHP that prevents a single post
I would like my Web page http://www.gmarks.org/math_in_e-mail.txt on my Apache 2.2.14 server to display
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
I am trying to understand how to use SyndicationItem to display feed which is
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.