1

I see 'the bootstrap process' mentioned in Dayle Rees Laravel tutorial "Code Bright" but no explanation of what it actually means. The Wikipedia definitions on Bootstrapping in computing don't seem to have any particular relevance.

closed as unclear what you're asking by amon, user40980, user53019, ChrisF Apr 27 '14 at 18:50

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

2

The bootstrap process is responsible to pickup all the different pieces that combine Laravel framework together before you start to process the request and return result. This could be further explained and analysed by looking at bootstrap files. There is folder bootstrap in root directory containing these files:

  • autoload.php - includes composer's autoloader, defines a few Laravel specific constants, initializes UTF-8 handling library etc. It is also responsible for loading any packages in workbench.
  • paths.php - this is just configuration array of relative paths. It allows you to move folders around or specify custom values. This is used so application knows where to look for various parts of framework.
  • start.php - this is the actual bootstrap part. It initializes Illuminate\Foundation\Application class, detects environment, loads path configuration from paths.php and starts the Framework so further processing of the request can continue (routing etc.).

I hope this helped you to understand a bit more of what bootstrap is in Laravel framework. Feel free to have a look at these files as they are very well commented and will allow you have a more in-depth review yourself. If you still feel that you have any questions feel free to comment.

  • In that case I'm not sure bootstrapping is the most descriptive name for this process – blarg Apr 23 '14 at 21:35
  • Could you please elaborate on the topic? I have met this term in various occurrences besides programming and I would see it as fit but I would like to hear more! – user120925 Apr 23 '14 at 21:36
  • It could be named initialization, but bootstrapping isn't the bad word - for example Symfony2 contains bootstrap.php file inside app directory that contains compiled set of classes to speed up loading commonly used ones. – Tomasz Kowalczyk Apr 23 '14 at 22:27
  • I agree. And keeping in mind that Laravel uses Symfony libraries you could understand why the naming was kept. – user120925 Apr 24 '14 at 7:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.