Skip to content

Commit

Permalink
Tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
olvlvl committed Apr 13, 2017
1 parent 052b5d6 commit 95eb490
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 19 deletions.
4 changes: 2 additions & 2 deletions LICENSE
@@ -1,7 +1,7 @@
The icanboogie/bind-render package is free software.
icanboogie/bind-render is free software.
It is released under the terms of the following BSD License.

Copyright (c) 2015-2016 by Olivier Laviale
Copyright (c) 2015-2017 by Olivier Laviale
All rights reserved.

Redistribution and use in source and binary forms, with or without modification,
Expand Down
15 changes: 6 additions & 9 deletions README.md
@@ -1,10 +1,9 @@
# bind-render

[![Release](https://img.shields.io/packagist/v/icanboogie/bind-render.svg)](https://packagist.org/packages/icanboogie/bind-render)
[![Build Status](https://img.shields.io/travis/ICanBoogie/bind-render/master.svg)](http://travis-ci.org/ICanBoogie/bind-render)
[![HHVM](https://img.shields.io/hhvm/icanboogie/bind-render.svg)](http://hhvm.h4cc.de/package/icanboogie/bind-render)
[![Code Quality](https://img.shields.io/scrutinizer/g/ICanBoogie/bind-render/master.svg)](https://scrutinizer-ci.com/g/ICanBoogie/bind-render)
[![Code Coverage](https://img.shields.io/coveralls/ICanBoogie/bind-render/master.svg)](https://coveralls.io/r/ICanBoogie/bind-render)
[![Build Status](https://img.shields.io/travis/ICanBoogie/bind-render.svg)](http://travis-ci.org/ICanBoogie/bind-render)
[![Code Quality](https://img.shields.io/scrutinizer/g/ICanBoogie/bind-render.svg)](https://scrutinizer-ci.com/g/ICanBoogie/bind-render)
[![Code Coverage](https://img.shields.io/coveralls/ICanBoogie/bind-render.svg)](https://coveralls.io/r/ICanBoogie/bind-render)
[![Packagist](https://img.shields.io/packagist/dt/icanboogie/bind-render.svg)](https://packagist.org/packages/icanboogie/bind-render)

The **icanboogie/bind-render** package binds [icanboogie/render][] to [ICanBoogie][], using its
Expand Down Expand Up @@ -90,9 +89,7 @@ The package requires PHP 5.6 or later.

The recommended way to install this package is through [Composer](http://getcomposer.org/):

```
$ composer require icanboogie/bind-render
```
$ composer require icanboogie/bind-render



Expand Down Expand Up @@ -127,8 +124,8 @@ The test suite is ran with the `make test` command. [PHPUnit](https://phpunit.de

The package is continuously tested by [Travis CI](http://about.travis-ci.org/).

[![Build Status](https://img.shields.io/travis/ICanBoogie/bind-render/master.svg)](https://travis-ci.org/ICanBoogie/bind-render)
[![Code Coverage](https://img.shields.io/coveralls/ICanBoogie/bind-render/master.svg)](https://coveralls.io/r/ICanBoogie/bind-render)
[![Build Status](https://img.shields.io/travis/ICanBoogie/bind-render.svg)](https://travis-ci.org/ICanBoogie/bind-render)
[![Code Coverage](https://img.shields.io/coveralls/ICanBoogie/bind-render.svg)](https://coveralls.io/r/ICanBoogie/bind-render)



Expand Down
9 changes: 9 additions & 0 deletions config/event.php
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of the ICanBoogie package.
*
* (c) Olivier Laviale <olivier.laviale@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ICanBoogie\Binding\Render;

$hooks = Hooks::class . '::';
Expand Down
19 changes: 13 additions & 6 deletions config/prototype.php
@@ -1,16 +1,23 @@
<?php

namespace ICanBoogie\Binding\Render;
/*
* This file is part of the ICanBoogie package.
*
* (c) Olivier Laviale <olivier.laviale@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

use ICanBoogie;
namespace ICanBoogie\Binding\Render;

$hooks = Hooks::class . '::';

return [

ICanBoogie\Application::class . '::lazy_get_template_engines' => $hooks . 'get_template_engines',
ICanBoogie\Application::class . '::lazy_get_template_resolver' => $hooks . 'get_template_resolver',
ICanBoogie\Application::class . '::lazy_get_renderer' => $hooks . 'get_renderer',
ICanBoogie\Application::class . '::render' => $hooks . 'render'
'ICanBoogie\Application::lazy_get_template_engines' => $hooks . 'get_template_engines',
'ICanBoogie\Application::lazy_get_template_resolver' => $hooks . 'get_template_resolver',
'ICanBoogie\Application::lazy_get_renderer' => $hooks . 'get_renderer',
'ICanBoogie\Application::render' => $hooks . 'render'

];
16 changes: 16 additions & 0 deletions config/render.php
@@ -0,0 +1,16 @@
<?php

/*
* This file is part of the ICanBoogie package.
*
* (c) Olivier Laviale <olivier.laviale@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace ICanBoogie\Binding\Render;

return [

];
3 changes: 1 addition & 2 deletions lib/Hooks.php
Expand Up @@ -12,14 +12,13 @@
namespace ICanBoogie\Binding\Render;

use function ICanBoogie\app;
use function ICanBoogie\get_autoconfig;
use ICanBoogie\Application;
use ICanBoogie\Render;
use ICanBoogie\Render\EngineCollection;
use ICanBoogie\Render\Renderer;
use ICanBoogie\Render\TemplateResolver;

use function ICanBoogie\get_autoconfig;

class Hooks
{
/*
Expand Down

0 comments on commit 95eb490

Please sign in to comment.