-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement CmsContentBlockSilexProvider, version 0.1.
- Loading branch information
0 parents
commit 9da8a0f
Showing
4 changed files
with
85 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.idea/ | ||
composer.lock | ||
vendor/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the GLAVWEB.cms Content Block Silex Provider package. | ||
* | ||
* (c) Andrey Nilov <[email protected]> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace Glavweb\CmsContentBlockSilexProvider; | ||
|
||
use Pimple\Container; | ||
use Pimple\ServiceProviderInterface; | ||
use Glavweb\CmsContentBlock\ContentBlockService; | ||
|
||
/** | ||
* ContentBlockServiceProvider | ||
* | ||
* @package Glavweb\CmsContentBlockSilexProvider | ||
* @author Andrey Nilov <[email protected]> | ||
*/ | ||
class ContentBlockServiceProvider implements ServiceProviderInterface | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function register(Container $app) | ||
{ | ||
$app['content_block_service'] = function () use ($app) { | ||
return new ContentBlockService( | ||
$app['cms_rest_client'] | ||
); | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 GLAVWEB | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "glavweb/cms-content-block-silex-provider", | ||
"description": "GLAVWEB.cms Rest Client Silex Provider", | ||
"authors": [ | ||
{ | ||
"name": "nilov", | ||
"email": "[email protected]", | ||
"homepage": "http://glavweb.ru" | ||
}, | ||
{ | ||
"name": "GLAVWEB Community", | ||
"homepage": "https://github.com/glavweb/cms-content-block-silex-provider/contributors" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.5.9", | ||
"pimple/pimple": "~3.0", | ||
"glavweb/cms-content-block": "~0.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { "Glavweb\\CmsContentBlockSilexProvider\\": "" } | ||
} | ||
} |