Skip to content

Commit fc3b066

Browse files
Improved installation instructions
1 parent 88779e3 commit fc3b066

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

README.md

+30
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,36 @@ A symfony2 bundle which allows applications to reduce overheads by exposing symf
1010

1111
Using this bundle, symfony2 applications can stay alive between HTTP requests whilst operating behind the protection of a FastCGI enabled web server.
1212

13+
## Installing
14+
15+
By turning your Symfony application into a FastCGI application, you can keep the application in memory between request cycles.
16+
17+
To do this, open the terminal in your project directory and use composer to add the Speedfony Bundle to your dependencies.
18+
19+
```sh
20+
composer require "phpfastcgi/speedfony-bundle:~0.4"
21+
```
22+
23+
Next, register the bundle in your AppKernel.php file:
24+
25+
```php
26+
// app/AppKernel.php
27+
28+
// ...
29+
class AppKernel extends Kernel
30+
{
31+
public function registerBundles()
32+
{
33+
$bundles = array(
34+
// ...
35+
new PHPFastCGI\SpeedfonyBundle\PHPFastCGISpeedfonyBundle(),
36+
);
37+
38+
// ...
39+
}
40+
// ...
41+
```
42+
1343
## Running the Daemon
1444

1545
To start the daemon listening on port 5000 use the command below. Production mode is selected here for the purposes of generating accurate benchmarks. We do not recommend that you use this package in production mode as it is not yet stable.

0 commit comments

Comments
 (0)