PHP Class AppserverIo\Appserver\ServletEngine\DependencyInjection\DirectoryParser

Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Protected Properties

Свойство Type Description
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context we want to parse the deployment descriptor for.

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
parseDirectory ( string $directory ) : void Parses the passed directory for classes and instances that has to be registered in the object manager.

Method Details

getApplication() public méthode

Returns the application context instance the servlet context is bound to.
public getApplication ( ) : AppserverIo\Psr\Application\ApplicationInterface
Résultat AppserverIo\Psr\Application\ApplicationInterface The application context instance

getServletContext() public méthode

Returns the servlet context instance.
public getServletContext ( ) : AppserverIo\Psr\Servlet\ServletContextInterface
Résultat AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance

injectServletContext() public méthode

Inject the servlet context instance.
public injectServletContext ( AppserverIo\Psr\Servlet\ServletContextInterface $servletContext ) : void
$servletContext AppserverIo\Psr\Servlet\ServletContextInterface The servlet context instance
Résultat void

parse() public méthode

Parses the servlet context's web application base directory for servlets that has to be registered in the object manager.
public parse ( ) : void
Résultat void

parseDirectory() protected méthode

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
Résultat void

Property Details

$servletContext protected_oe property

The servlet context we want to parse the deployment descriptor for.
protected ServletContextInterface,AppserverIo\Psr\Servlet $servletContext
Résultat AppserverIo\Psr\Servlet\ServletContextInterface