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
<?php | |
use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
$language = new ExpressionLanguage(); | |
$userInfo = array( | |
'age' => '36', | |
'country' => 'Lilliput' | |
); |
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
gulp.task('sass', function() { | |
return gulp.src('scss/app.scss') | |
.pipe($.sass({ | |
includePaths: sassPaths | |
}) | |
.on('error', $.sass.logError)) | |
.pipe($.autoprefixer({ | |
browsers: ['last 2 versions', 'ie >= 9'] | |
})) |
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
ezpublish: | |
system: | |
default: | |
location_view: | |
full: | |
blog: | |
controller: app.controller.blog:listBlogPostsAction | |
template: full\blog.html.twig | |
match: | |
Identifier\ContentType: [blog] |
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
<?php | |
/** | |
* @param \eZ\Publish\API\Repository\ContentService $contentService | |
* @param \eZ\Publish\API\Repository\SearchService $searchService | |
* @param \eZ\Publish\API\Repository\LocationService $locationService | |
* @param \eZ\Publish\Core\MVC\ConfigResolverInterface $configResolver | |
* @param \AppBundle\Criteria\Children $childrenCriteria | |
* @param int $randomPostsLimit | |
* @param int $blogPostLimit |
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
parameters: | |
app.controller.blog.class: AppBundle\Controller\BlogController | |
services: | |
app.controller.blog: | |
class: %app.controller.blog.class% | |
arguments: | |
- @ezpublish.api.service.content | |
- @ezpublish.api.service.search | |
- @ezpublish.api.service.location |
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
<?php | |
/** | |
* Displays the list of blog_post. | |
* | |
* @param \eZ\Publish\Core\MVC\Symfony\View\ContentView $view | |
* @param \Symfony\Component\HttpFoundation\Request $request | |
* | |
* @return \Symfony\Component\HttpFoundation\Response | |
*/ |
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
<?php | |
namespace AppBundle\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Icicle\Coroutine\Coroutine; | |
use Icicle\Loop; | |
use Icicle\Awaitable; |
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
<?php | |
namespace AppBundle\Controller; | |
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; | |
use Symfony\Bundle\FrameworkBundle\Controller\Controller; | |
use Symfony\Component\HttpFoundation\Request; | |
use Icicle\Coroutine\Coroutine; | |
use Icicle\Loop; | |
use Icicle\Awaitable; |