1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-10 07:06:45 +02:00

feat(helpers): update helpers

This commit is contained in:
Awilum
2021-08-02 14:39:54 +03:00
parent 4252a1e05c
commit 956a9268ed

View File

@@ -23,7 +23,7 @@ if (! function_exists('flextype')) {
if (! function_exists('app')) {
/**
* Get Flextype app.
* Get Flextype App.
*/
function app() {
return flextype()->app();
@@ -32,7 +32,7 @@ if (! function_exists('app')) {
if (! function_exists('container')) {
/**
* Get Flextype container.
* Get Flextype Container.
*/
function container() {
return flextype()->container();
@@ -41,7 +41,7 @@ if (! function_exists('container')) {
if (! function_exists('emitter')) {
/**
* Get Flextype emitter service.
* Get Flextype Emitter Service.
*/
function emitter() {
return flextype()->container()->get('emitter');
@@ -50,7 +50,7 @@ if (! function_exists('emitter')) {
if (! function_exists('cache')) {
/**
* Get Flextype cache service.
* Get Flextype Cache Service.
*/
function cache() {
return flextype()->container()->get('cache');
@@ -59,7 +59,7 @@ if (! function_exists('cache')) {
if (! function_exists('entries')) {
/**
* Get Flextype entries service.
* Get Flextype Entries Service.
*/
function entries() {
return flextype()->container()->get('entries');
@@ -68,7 +68,7 @@ if (! function_exists('entries')) {
if (! function_exists('parsers')) {
/**
* Get Flextype parsers service.
* Get Flextype Parsers Service.
*/
function parsers() {
return flextype()->container()->get('parsers');
@@ -77,7 +77,7 @@ if (! function_exists('parsers')) {
if (! function_exists('serializers')) {
/**
* Get Flextype serializers service.
* Get Flextype Serializers Service.
*/
function serializers() {
return flextype()->container()->get('serializers');
@@ -86,7 +86,7 @@ if (! function_exists('serializers')) {
if (! function_exists('logger')) {
/**
* Get Flextype logger service.
* Get Flextype Logger Service.
*/
function logger() {
return flextype()->container()->get('logger');
@@ -95,7 +95,7 @@ if (! function_exists('logger')) {
if (! function_exists('session')) {
/**
* Get Flextype session service.
* Get Flextype Session Service.
*/
function session() {
return flextype()->container()->get('session');
@@ -104,13 +104,22 @@ if (! function_exists('session')) {
if (! function_exists('csrf')) {
/**
* Get Flextype csrf service.
* Get Flextype CSRF Service.
*/
function csrf() {
return flextype()->container()->get('csrf');
}
}
if (! function_exists('plugins')) {
/**
* Get Flextype Plugins Service.
*/
function plugins() {
return flextype()->container()->get('plugins');
}
}
if (! function_exists('find')) {
/**
* Create a Finder instance with predefined filter params or without them.