Documentation

ClassFinder extends ContainerAwareObject
in package

ClassFinder utils functions Helper Class

Table of Contents

Properties

$translators  : array<string|int, mixed>
$classesInNamespaces  : array<string|int, mixed>
$classesNamespaces  : array<string|int, mixed>
$container  : ContainerInterface

Methods

__call()  : mixed
{@inheritdoc}
__construct()  : mixed
constructor
containerCall()  : mixed
call method through container
containerMake()  : mixed
create object through container
findAdminControllers()  : mixed
findAdminPages()  : mixed
findAIModelClasses()  : mixed
findAndFilterClasses()  : mixed
findAndFilterGroupClasses()  : mixed
findBlockClasses()  : mixed
findClassesOf()  : mixed
findCommandClasses()  : mixed
findControllers()  : mixed
findCronTaskClasses()  : mixed
findCrudControllers()  : mixed
findEventListenerClasses()  : mixed
findExportableClasses()  : mixed
findFrontendControllers()  : mixed
findFrontendModelClasses()  : mixed
findGroupClassesOf()  : mixed
findIndexableClasses()  : mixed
findModelClasses()  : mixed
findPaymentMethodClasses()  : mixed
findPhysicalProductClasses()  : mixed
findProductClasses()  : mixed
findRouterClasses()  : mixed
findShippingMethodClasses()  : mixed
findWebhookControllers()  : mixed
getAdminRouter()  : Admin
gets admin service
getAI()  : Manager
gets ai manager service
getAllAppClasses()  : mixed
getApp()  : App
gets app object
getApplicationLogger()  : Manager
gets application_logger service
getAppRouteInfo()  : RouteInfo|null
gets route info
getAppWebsite()  : Website|null
gets current website
getAssets()  : Manager
gets assets manager
getAuth()  : Manager
gets auth manager service
getCache()  : Manager
get cache manager
getClassFinder()  : ClassFinder
get classfinder
getContainer()  : ContainerInterface|Container
gets container object
getCrudRouter()  : Crud
gets crud service
getDb()  : Database|null
gets db object
getDebugbar()  : StandardDebugBar
gets debugbar object
getEnvironment()  : Manager
gets environment manager service
getEventManager()  : SharedEventEmitter
gets events manager service
getGeocoder()  : Geocoder
gets geocoder
getGoogleAuthenticator()  : PHPGangsta_GoogleAuthenticator
gets google authenticator service
getGraphQLRouter()  : Graphql
gets graphql service
getGroupClasses()  : mixed
getGuzzle()  : Client
gets guzzle service
getGZip()  : GZip
gets gzip service
getHtmlRenderer()  : HtmlPartsRenderer
gets html renderer service
getIcons()  : Icons
gets icons service
getImagine()  : Imagine
gets imagine service
getLog()  : Logger
gets log object
getMailer()  : Mailer
gets mailer service
getPdo()  : PDO|null
gets PDO object
getRedis()  : Manager
gets redis service
getRouters()  : array<string|int, mixed>
gets routers
getSchema()  : Schema|null
gets schema object
getSearch()  : Manager
gets search service
getSesMailer()  : SesClient
gets SES mailer service
getSiteData()  : SiteData
gets site data service
getSmtpMailer()  : Swift_Mailer
gets SMTP mailer service
getTemplates()  : Engine
gets plates engine object
getTranslator()  : Translator
gets translator
getUtils()  : Globals
gets global utils service
getWebhooksRouter()  : Webhooks
gets webhooks service
getWebRouter()  : Web
gets routing service
getZip()  : Zip
gets zip service
initClassesCache()  : mixed
requestUrl()  : string|bool
executes an http request
getService()  : mixed
gets registered service

Properties

$translators

public static array<string|int, mixed> $translators = []

translators

$classesInNamespaces

protected array<string|int, mixed> $classesInNamespaces = []

$classesNamespaces

protected array<string|int, mixed> $classesNamespaces = ['commands' => [\App\App::BASE_COMMANDS_NAMESPACE, \App\App::COMMANDS_NAMESPACE], 'controllers' => [\App\App::BASE_CONTROLLERS_NAMESPACE, \App\App::CONTROLLERS_NAMESPACE], 'admincontrollers' => [\App\App::BASE_CONTROLLERS_NAMESPACE . '\Admin', \App\App::CONTROLLERS_NAMESPACE . '\Admin'], 'frontendcontrollers' => [\App\App::BASE_CONTROLLERS_NAMESPACE . '\Frontend', \App\App::CONTROLLERS_NAMESPACE . '\Frontend'], 'cron_tasks' => [\App\App::BASE_CRON_TASKS_NAMESPACE, \App\App::CRON_TASKS_NAMESPACE], 'routers' => [\App\App::BASE_ROUTERS_NAMESPACE, \App\App::ROUTERS_NAMESPACE], 'blocks' => [\App\App::BASE_BLOCKS_NAMESPACE, \App\App::BLOCKS_NAMESPACE], 'models' => [\App\App::BASE_MODELS_NAMESPACE, \App\App::MODELS_NAMESPACE], 'crud' => [\App\App::BASE_CRUD_NAMESPACE, \App\App::CRUD_NAMESPACE], 'commerce' => [\App\App::BASE_COMMERCE_NAMESPACE, \App\App::COMMERCE_NAMESPACE], 'migrations' => [\App\App::BASE_MIGRATIONS_NAMESPACE, \App\App::MIGRATIONS_NAMESPACE], 'event_listeners' => [\App\App::BASE_EVENT_LISTENERS_NAMESPACE, \App\App::EVENT_LISTENERS_NAMESPACE], 'webhooks' => [\App\App::WEBHOOKS_NAMESPACE], 'queues' => [\App\App::QUEUES_NAMESPACE], 'graphql' => [\App\App::GRAPHQL_RESOLVERS_NAMESPACE], 'ai_models' => [\App\App::BASE_AIMODELS_NAMESPACE, \App\App::AIMODELS_NAMESPACE]]

Methods

__construct()

constructor

public __construct(ContainerInterface $container) : mixed
Parameters
$container : ContainerInterface

containerCall()

call method through container

public containerCall(callable $callable[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
$callable : callable
$arguments : array<string|int, mixed> = []

containerMake()

create object through container

public containerMake(string $className[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
$className : string
$arguments : array<string|int, mixed> = []

findAdminControllers()

public findAdminControllers() : mixed

findAIModelClasses()

public findAIModelClasses() : mixed

findAndFilterClasses()

public findAndFilterClasses(callable $filter) : mixed
Parameters
$filter : callable

findAndFilterGroupClasses()

public findAndFilterGroupClasses(string $group, callable $filter) : mixed
Parameters
$group : string
$filter : callable

findBlockClasses()

public findBlockClasses() : mixed

findClassesOf()

public findClassesOf(string $className[, bool $alsoAbstracts = false ]) : mixed
Parameters
$className : string
$alsoAbstracts : bool = false

findCommandClasses()

public findCommandClasses() : mixed

findCronTaskClasses()

public findCronTaskClasses() : mixed

findCrudControllers()

public findCrudControllers() : mixed

findEventListenerClasses()

public findEventListenerClasses() : mixed

findExportableClasses()

public findExportableClasses() : mixed

findFrontendControllers()

public findFrontendControllers() : mixed

findFrontendModelClasses()

public findFrontendModelClasses() : mixed

findGroupClassesOf()

public findGroupClassesOf(string $group, string $className[, bool $alsoAbstracts = false ]) : mixed
Parameters
$group : string
$className : string
$alsoAbstracts : bool = false

findIndexableClasses()

public findIndexableClasses() : mixed

findModelClasses()

public findModelClasses() : mixed

findPaymentMethodClasses()

public findPaymentMethodClasses() : mixed

findPhysicalProductClasses()

public findPhysicalProductClasses() : mixed

findProductClasses()

public findProductClasses() : mixed

findRouterClasses()

public findRouterClasses() : mixed

findShippingMethodClasses()

public findShippingMethodClasses() : mixed

findWebhookControllers()

public findWebhookControllers() : mixed

getAllAppClasses()

public getAllAppClasses() : mixed

getContainer()

gets container object

public getContainer() : ContainerInterface|Container
Return values
ContainerInterface|Container

getDb()

gets db object

public getDb() : Database|null
Tags
throws
BasicException
Return values
Database|null

getDebugbar()

gets debugbar object

public getDebugbar() : StandardDebugBar
Tags
throws
BasicException
Return values
StandardDebugBar

getEventManager()

gets events manager service

public getEventManager() : SharedEventEmitter
Tags
throws
BasicException
Return values
SharedEventEmitter

getGoogleAuthenticator()

gets google authenticator service

public getGoogleAuthenticator() : PHPGangsta_GoogleAuthenticator
Tags
throws
BasicException
Return values
PHPGangsta_GoogleAuthenticator

getGroupClasses()

public getGroupClasses(string $group) : mixed
Parameters
$group : string

getGuzzle()

gets guzzle service

public getGuzzle() : Client
Tags
throws
BasicException
Return values
Client

getIcons()

gets icons service

public getIcons() : Icons
Tags
throws
BasicException
Return values
Icons

getImagine()

gets imagine service

public getImagine() : Imagine
Tags
throws
BasicException
Return values
Imagine

getLog()

gets log object

public getLog() : Logger
Tags
throws
BasicException
Return values
Logger

getPdo()

gets PDO object

public getPdo() : PDO|null
Tags
throws
BasicException
Return values
PDO|null

getRouters()

gets routers

public getRouters() : array<string|int, mixed>
Tags
throws
BasicException
Return values
array<string|int, mixed>

getSchema()

gets schema object

public getSchema() : Schema|null
Tags
throws
BasicException
Return values
Schema|null

getSesMailer()

gets SES mailer service

public getSesMailer() : SesClient
Tags
throws
BasicException
Return values
SesClient

getSmtpMailer()

gets SMTP mailer service

public getSmtpMailer() : Swift_Mailer
Tags
throws
BasicException
Return values
Swift_Mailer

getTemplates()

gets plates engine object

public getTemplates() : Engine
Tags
throws
BasicException
Return values
Engine

getTranslator()

gets translator

public getTranslator([string|null $locale_code = null ]) : Translator
Parameters
$locale_code : string|null = null
Tags
throws
DependencyException
NotFoundException
Return values
Translator

initClassesCache()

public initClassesCache() : mixed

requestUrl()

executes an http request

public requestUrl(string $url[, string $method = 'GET' ][, array<string|int, mixed> $options = [] ]) : string|bool
Parameters
$url : string
$method : string = 'GET'
$options : array<string|int, mixed> = []
Tags
throws
Exception
GuzzleException
Return values
string|bool

getService()

gets registered service

protected getService(string $service_key) : mixed
Parameters
$service_key : string
Tags
throws
BasicException

        
On this page

Search results