Skip to content

Instantly share code, notes, and snippets.

View luca-rath's full-sized avatar

Luca Rath-Heel luca-rath

View GitHub Profile
@luca-rath
luca-rath / BookRepository.php
Last active February 19, 2020 11:43
Repository design
<?php
declare(strict_types=1);
namespace Intosite\Bundle\RecipeBundle\Recipe\Infrastructure\Doctrine;
use HandcraftedInTheAlps\Util\Model\Repository\ResourceRepository;
use Intosite\Bundle\RecipeBundle\Recipe\Domain\Model\BookInterface;
use Intosite\Bundle\RecipeBundle\Recipe\Domain\Repository\BookRepositoryInterface;
@luca-rath
luca-rath / sulu_smart_content_load_more.md
Last active October 15, 2023 06:52
Sulu smart_content load-more link

The javascript component, which handles the loadMore could look like this:

// components/AjaxLink.js

import * as $ from 'jquery';

export default class AjaxLink {
    $el;
    $container;