PHP Класс AppserverIo\Appserver\ServletEngine\DependencyInjection\DirectoryParser

Автор: Tim Wagner ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context we want to parse the deployment descriptor for.

Открытые методы

Метод Описание
getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface Returns the application context instance the servlet context is bound to.
getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface Returns the servlet context instance.
injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void Inject the servlet context instance.
parse ( ) : void Parses the servlet context's web application base directory for servlets that has to be registered in the object manager.

Защищенные методы

Метод Описание
parseDirectory ( string $directory ) : void Parses the passed directory for classes and instances that has to be registered in the object manager.

Описание методов

getApplication() публичный метод

Returns the application context instance the servlet context is bound to.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
Результат AppserverIo\Psr\Application\ApplicationInterface The application context instance

getServletContext() публичный метод

Returns the servlet context instance.
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface
Результат AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance

injectServletContext() публичный метод

Inject the servlet context instance.
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance
Результат void

parse() публичный метод

Parses the servlet context's web application base directory for servlets that has to be registered in the object manager.
public parse ( ) : void
Результат void

parseDirectory() защищенный метод

Parses the passed directory for classes and instances that has to be registered in the object manager.
protected parseDirectory ( string $directory ) : void
$directory string The directory to parse
Результат void

Описание свойств

$servletContext защищенное свойство

The servlet context we want to parse the deployment descriptor for.
protected ServletContextInterface,AppserverIo\Psr\Servlet $servletContext
Результат AppserverIo\Psr\Servlet\ServletContextInterface