Releases: bedita/web-tools
Release 1.4.1
Backport of fix in 3.1.1 version
Release 2.4.0
Backport of ApiProxyTrait
to 2.x branch. See Release 3.1.0
Release 1.4.0
Backport of ApiProxyTrait
to 1.x branch. See Release 3.1.0
Release 3.1.0
Main changes are:
-
introduction of
ApiProxyTrait
to easily proxy requests to BEdita4 API in a controller. Only GET request are supported for now.
To enable it create a controller asuse BEdita\WebTools\Controller\ApiProxyTrait; use App\Controller\AppController; class ApiController extends AppController { use ApiProxyTrait; }
and define the routing rule
$routes->scope('/api', ['_namePrefix' => 'api:'], function (RouteBuilder $routes) { $routes->get('/**', ['controller' => 'Api', 'action' => 'get'], 'get'); });
Then you can do requests to
/api/*
route (for example viaGET /api/users
) obtaining the raw json response from the API. In the response the URL of the API will be masked with the app URL.
Release 3.0.1
Main changes are:
- ability to setup
Twig
environment viaTwig.environment
configuration key - default of strict_variables set to
false
Release 3.0.0
Main changes are:
- code cleanup and removing of
BaseApplication
class replaced byPlugin
- leave to the application level the task of adding DebugKit, Bake plugins and the application middleware stack
- replace legacy TwigView view the new TwigView plugin
Release 2.3.0
Add a more flexible way to load assets through specific stategies.
To load a strategy you should define in your app which strategy to use
use BEdita\WebTools\Utility\AssetRevisions;
use BEdita\WebTools\Utility\Asset\Strategy\EntrypointsStrategy;
AssetsRevisions::setStrategy(new EntrypointsStrategy());
There are two strategies at the moment:
RevManifestStrategy
based onrev-manifest.json
file generated by gulp-revEntrypointsStrategy
based on theentrypoints.json
file generated by Webpack Encore
But you can easily implements your custom strategy.
To load the proper assets you can use \BEdita\WebTools\View\Helper\HtmlHelper
and its methods script()
, css()
and assets()
.
Release 2.2.0
New ApiIdentifier
to use with Authentication plugin.
Release 2.1.0
New WebComponentHelper
to setup Custom Elements
Release 2.0.0
- Compatible with CakePHP 4.0