Skip to content

Commit e613bbd

Browse files
Merge pull request #1 from PHPFastCGI/silex-adapt
Changed from Speedex to SilexAdapter
2 parents 90e0b31 + b5a12c3 commit e613bbd

File tree

5 files changed

+16
-16
lines changed

5 files changed

+16
-16
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Speedex
1+
# PHPFastCGI Silex Adapter
22

33
[![Build Status](https://travis-ci.org/PHPFastCGI/Speedex.svg?branch=master)](https://travis-ci.org/PHPFastCGI/Speedex)
44
[![Coverage Status](https://coveralls.io/repos/PHPFastCGI/Speedex/badge.svg?branch=master)](https://coveralls.io/r/PHPFastCGI/Speedex?branch=master)
@@ -9,18 +9,18 @@ Visit the [project website](http://phpfastcgi.github.io/).
99

1010
## Introduction
1111

12-
Using this package, Silex applications can stay alive between HTTP requests whilst operating behind the protection of a FastCGI enabled web server.
12+
Using this adapter, Silex applications can stay alive between HTTP requests whilst operating behind the protection of a FastCGI enabled web server.
1313

1414
## Current Status
1515

16-
This project is currently in early stages of development and not considered stable. Importantly, this library currently lacks support for uploaded files. Also a memory leak protection feature is scheduled for integration that allows the daemon to shutdown after handling 'N' requests.
16+
This project is currently in early stages of development and not considered stable. Importantly, this library currently lacks support for uploaded files.
1717

1818
Contributions and suggestions are welcome.
1919

2020
## Installing
2121

2222
```sh
23-
composer require "phpfastcgi/speedex:^0.4"
23+
composer require "phpfastcgi/silex-adapter:^0.5"
2424
```
2525

2626
## Usage
@@ -32,11 +32,11 @@ composer require "phpfastcgi/speedex:^0.4"
3232
require_once dirname(__FILE__) . '/../vendor/autoload.php';
3333

3434
use PHPFastCGI\FastCGIDaemon\ApplicationFactory;
35-
use PHPFastCGI\Speedex\ApplicationWrapper;
36-
use Silex\Application as SilexApplication;
35+
use PHPFastCGI\Adapter\Silex\ApplicationWrapper;
36+
use Silex\Application;
3737

3838
// Create your Silex application
39-
$app = new SilexApplication;
39+
$app = new Application;
4040
$app->get('/hello/{name}', function ($name) use ($app) {
4141
return 'Hello ' . $app->escape($name);
4242
});

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "phpfastcgi/speedex",
3-
"description": "A bundle to integrate a FastCGI daemon with the Silex micro-framework",
4-
"keywords": ["speedex", "silex", "fastcgi", "server", "fast cgi", "daemon"],
2+
"name": "phpfastcgi/silex-adapter",
3+
"description": "An adapter to integrate PHPFastCGI with the Silex micro-framework",
4+
"keywords": ["silex", "fastcgi", "server", "fast cgi", "daemon"],
55
"license": "GPL v2",
66
"authors": [
77
{
@@ -19,12 +19,12 @@
1919
},
2020
"autoload": {
2121
"psr-4": {
22-
"PHPFastCGI\\Speedex\\": "src/"
22+
"PHPFastCGI\\Adapter\\Silex\\": "src/"
2323
}
2424
},
2525
"autoload-dev": {
2626
"psr-4": {
27-
"PHPFastCGI\\Test\\Speedex\\": "test/"
27+
"PHPFastCGI\\Test\\Adapter\\Silex\\": "test/"
2828
}
2929
}
3030
}

phpunit.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<phpunit bootstrap="vendor/autoload.php" colors="true">
33
<testsuites>
4-
<testsuite name="Speedex Test Suite">
4+
<testsuite name="PHPFastCGI Silex Adapter Test Suite">
55
<directory>test</directory>
66
</testsuite>
77
</testsuites>

src/ApplicationWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace PHPFastCGI\Speedex;
3+
namespace PHPFastCGI\Adapter\Silex;
44

55
use PHPFastCGI\FastCGIDaemon\Http\RequestInterface;
66
use PHPFastCGI\FastCGIDaemon\KernelInterface;

test/ApplicationWrapperTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace PHPFastCGI\Speedex\Tests;
3+
namespace PHPFastCGI\Adapter\Silex\Tests;
44

55
use PHPFastCGI\FastCGIDaemon\Http\Request;
6-
use PHPFastCGI\Speedex\ApplicationWrapper;
6+
use PHPFastCGI\Adapter\Silex\ApplicationWrapper;
77
use Silex\Application;
88

99
class ApplicationWrapperTest extends \PHPUnit_Framework_TestCase

0 commit comments

Comments
 (0)