Skip to content

Commit c36d322

Browse files
committed
Add user logos
1 parent 34f2845 commit c36d322

File tree

9 files changed

+55
-15
lines changed

9 files changed

+55
-15
lines changed

source/css/style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,18 @@ ul.avatars li img {
107107
ul.avatars li a {
108108
text-decoration: none;
109109
}
110+
111+
.frameworks-logo-list {
112+
/* Clearfix */
113+
margin: 0 0 20px -20px;
114+
list-style: none;
115+
}
116+
117+
.frameworks-logo-list > li {
118+
vertical-align: middle;
119+
display: inline-block;
120+
margin: 0 0 0 20px;
121+
}
122+
.frameworks-logo-list img {
123+
max-height: 60px;
124+
}

source/img/middleware.png

34.4 KB
Loading

source/img/users/drupal.png

24.7 KB
Loading

source/img/users/ez-publish.png

1.26 KB
Loading

source/img/users/laravel.png

2.73 KB
Loading

source/img/users/silex.png

62.1 KB
Loading

source/img/users/symfony.png

2.88 KB
Loading

source/img/users/yolo.png

27.3 KB
Loading

source/index.html

Lines changed: 40 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,30 +37,55 @@ <h2>Why?</h2>
3737

3838
<div class="about">
3939
<h2>What is Stack?</h2>
40+
4041
<p>
4142
Stack is a convention for composing <a href="https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpKernel/HttpKernelInterface.php">HttpKernelInterface</a> middlewares. Any framework based on Symfony2's HttpKernelInterface can use these middlewares. They allow an application to be extended in a generic way, simply by wrapping objects around the kernel.
4243
</p>
44+
45+
<!--
46+
<figure>
47+
<img src="{{ site.url }}/img/middleware.png" alt="">
48+
</figure>
49+
-->
50+
51+
<p>A simple middleware, which appends "YOLO!" in big bold text to every request, looks like this:</p>
52+
<pre><code class="php">{%- filter escape -%}use Symfony\Component\HttpFoundation\Request;
53+
use Symfony\Component\HttpKernel\HttpKernelInterface;
54+
55+
class YoloMiddleware implements HttpKernelInterface
56+
{
57+
protected $app;
58+
59+
public function __construct(HttpKernelInterface $app)
60+
{
61+
$this->app = $app;
62+
}
63+
64+
public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true)
65+
{
66+
$response = $this->app->handle($request, $type, $catch);
67+
$response->setContent($response->getContent() . "<h1>YOLO!</h1>");
68+
69+
return $response;
70+
}
71+
}{%- endfilter -%}</code></pre>
4372
</div>
4473

4574
<hr>
4675

4776
<div class="frameworks">
48-
<h2>Which frameworks support Stack?</h2>
49-
<p>
50-
The following frameworks and apps are using the HttpKernelInterface abstraction and can thus benefit from Stack:
51-
</p>
52-
<ul>
53-
<li><a href="http://symfony.com/">Symfony2</a></li>
54-
<li><a href="http://silex.sensiolabs.org/">Silex</a></li>
55-
<li><a href="http://laravel.com/">Laravel4</a></li>
56-
<li><a href="https://drupal.org/">Drupal8</a></li>
57-
<li><a href="http://ez.no/">eZ Publish 5</a></li>
58-
<li><a href="http://yolophp.com/">YOLO</a></li>
59-
<li>Your own?</li>
77+
<h2>Works already with</h2>
78+
79+
{% spaceless %}
80+
<ul class="frameworks-logo-list">
81+
<li><a href="http://symfony.com/"><img src="{{site.url}}/img/users/symfony.png" alt="Symfony 2" /></a></li>
82+
<li><a href="http://silex.sensiolabs.org/"><img src="{{site.url}}/img/users/silex.png" alt="Silex" /></a></li>
83+
<li><a href="http://laravel.com/"><img src="{{site.url}}/img/users/laravel.png" alt="Laravel 4" /></a></li>
84+
<li><a href="https://drupal.org/"><img src="{{site.url}}/img/users/drupal.png" alt="Drupal8" /></a></li>
85+
<li><a href="http://ez.no/"><img src="{{site.url}}/img/users/ez-publish.png" alt="eZ Publish 5" /></a></li>
86+
<li><a href="http://yolophp.com/"><img src="{{site.url}}/img/users/yolo.png" alt="Yolo" /></a></li>
6087
</ul>
61-
<p>
62-
As more frameworks and apps join in, more re-use will be possible.
63-
</p>
88+
{% endspaceless %}
6489
</div>
6590

6691
<hr>

0 commit comments

Comments
 (0)