xref: /template/strap/ComboStrap/IFetcherPath.php (revision 04fd306c7c155fa133ebb3669986875d65988276)
1*04fd306cSNickeau<?php
2*04fd306cSNickeau
3*04fd306cSNickeaunamespace ComboStrap;
4*04fd306cSNickeau
5*04fd306cSNickeau/**
6*04fd306cSNickeau * All fetcher that would answer an ajax call that returns a file
7*04fd306cSNickeau * should implement it
8*04fd306cSNickeau * TODO: The handler/fetcher should just get the {@link ExecutionContext} in a process function
9*04fd306cSNickeau *   and pass the result (a string or a file or whatever)
10*04fd306cSNickeau *   you get then a functional interface
11*04fd306cSNickeau */
12*04fd306cSNickeauinterface IFetcherPath extends IFetcher
13*04fd306cSNickeau{
14*04fd306cSNickeau
15*04fd306cSNickeau    /**
16*04fd306cSNickeau     * Return the local path of the resource
17*04fd306cSNickeau     * (process it if needed and save it in the cache)
18*04fd306cSNickeau     * @return LocalPath
19*04fd306cSNickeau     */
20*04fd306cSNickeau    function getFetchPath(): LocalPath;
21*04fd306cSNickeau
22*04fd306cSNickeau}
23