Drush: Drush\Drupal\DrupalKernel Class Reference

Public Member Functions

 addServiceModifier (ServiceModifierInterface $serviceModifier)

Static Public Member Functions

static createFromRequest (Request $request, $class_loader, $environment, $allow_dumping=TRUE, $app_root=NULL)

Protected Member Functions

 getContainerBuilder ()

Protected Attributes

 $serviceModifiers = []

Detailed Description

Definition at line 9 of file DrupalKernel.php.

Member Function Documentation

Drush\Drupal\DrupalKernel::addServiceModifier ( ServiceModifierInterface  $serviceModifier)

Add a service modifier to the container builder.

The container is not compiled until $kernel->boot(), so there is a chance for clients to add compiler passes et. al. before then.

Definition at line 30 of file DrupalKernel.php.

References drush_log(), and dt().

Here is the call graph for this function:

static Drush\Drupal\DrupalKernel::createFromRequest ( Request  $request,
  $class_loader,
  $environment,
  $allow_dumping = TRUE,
  $app_root = NULL 
)
static

Definition at line 16 of file DrupalKernel.php.

References drush_log(), and dt().

Here is the call graph for this function:

Drush\Drupal\DrupalKernel::getContainerBuilder ( )
protected

Definition at line 38 of file DrupalKernel.php.

References drush_log(), and dt().

Here is the call graph for this function:


The documentation for this class was generated from the following file:

File

doxygen/html/classDrush_1_1Drupal_1_1DrupalKernel.html
View source
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Drush: Drush\Drupal\DrupalKernel Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Drush
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>Drush</b></li><li class="navelem"><b>Drupal</b></li><li class="navelem"><a class="el" href="classDrush_1_1Drupal_1_1DrupalKernel.html">DrupalKernel</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classDrush_1_1Drupal_1_1DrupalKernel-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Drush\Drupal\DrupalKernel Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a4a26c46a38f389ec5201c3fcf71603fd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Drupal_1_1DrupalKernel.html#a4a26c46a38f389ec5201c3fcf71603fd">addServiceModifier</a> (ServiceModifierInterface $serviceModifier)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a72d3aa0c12a074441be8495e1033b953"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Drupal_1_1DrupalKernel.html#a72d3aa0c12a074441be8495e1033b953">createFromRequest</a> (Request $request, $class_loader, $environment, $allow_dumping=TRUE, $app_root=NULL)</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:abca2c9d9b60502c7b0a80d6485030acc"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classDrush_1_1Drupal_1_1DrupalKernel.html#abca2c9d9b60502c7b0a80d6485030acc">getContainerBuilder</a> ()</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:add13bb41345b41310e82d2172ab4f98c"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="add13bb41345b41310e82d2172ab4f98c"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>$serviceModifiers</b> = []</td></tr>
</table>
<a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="DrupalKernel_8php_source.html#l00009">9</a> of file <a class="el" href="DrupalKernel_8php_source.html">DrupalKernel.php</a>.</p>
</div><h2>Member Function Documentation</h2>
<a class="anchor" id="a4a26c46a38f389ec5201c3fcf71603fd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Drupal\DrupalKernel::addServiceModifier </td>
          <td>(</td>
          <td class="paramtype">ServiceModifierInterface&#160;</td>
          <td class="paramname"><em>$serviceModifier</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add a service modifier to the container builder.</p>
<p>The container is not compiled until $kernel-&gt;boot(), so there is a chance for clients to add compiler passes et. al. before then. </p>

<p>Definition at line <a class="el" href="DrupalKernel_8php_source.html#l00030">30</a> of file <a class="el" href="DrupalKernel_8php_source.html">DrupalKernel.php</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Drupal_1_1DrupalKernel_a4a26c46a38f389ec5201c3fcf71603fd_cgraph.png" border="0" usemap="#classDrush_1_1Drupal_1_1DrupalKernel_a4a26c46a38f389ec5201c3fcf71603fd_cgraph" alt=""/></div>
<map name="classDrush_1_1Drupal_1_1DrupalKernel_a4a26c46a38f389ec5201c3fcf71603fd_cgraph" id="classDrush_1_1Drupal_1_1DrupalKernel_a4a26c46a38f389ec5201c3fcf71603fd_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="233,27,311,56"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="253,80,291,109"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="387,27,472,56"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="548,32,703,61"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="771,83,899,112"/><area shape="rect" id="node12" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="787,5,883,35"/><area shape="rect" id="node14" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="967,71,1068,100"/><area shape="rect" id="node16" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1119,71,1252,100"/><area shape="rect" id="node20" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="363,133,496,179"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="360,80,499,109"/><area shape="rect" id="node22" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="553,136,697,165"/><area shape="rect" id="node24" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="752,136,917,165"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a72d3aa0c12a074441be8495e1033b953"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Drush\Drupal\DrupalKernel::createFromRequest </td>
          <td>(</td>
          <td class="paramtype">Request&#160;</td>
          <td class="paramname"><em>$request</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$class_loader</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$environment</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$allow_dumping</em> = <code>TRUE</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$app_root</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="DrupalKernel_8php_source.html#l00016">16</a> of file <a class="el" href="DrupalKernel_8php_source.html">DrupalKernel.php</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Drupal_1_1DrupalKernel_a72d3aa0c12a074441be8495e1033b953_cgraph.png" border="0" usemap="#classDrush_1_1Drupal_1_1DrupalKernel_a72d3aa0c12a074441be8495e1033b953_cgraph" alt=""/></div>
<map name="classDrush_1_1Drupal_1_1DrupalKernel_a72d3aa0c12a074441be8495e1033b953_cgraph" id="classDrush_1_1Drupal_1_1DrupalKernel_a72d3aa0c12a074441be8495e1033b953_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="233,27,311,56"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="253,80,291,109"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="387,27,472,56"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="548,32,703,61"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="771,83,899,112"/><area shape="rect" id="node12" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="787,5,883,35"/><area shape="rect" id="node14" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="967,71,1068,100"/><area shape="rect" id="node16" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1119,71,1252,100"/><area shape="rect" id="node20" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="363,133,496,179"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="360,80,499,109"/><area shape="rect" id="node22" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="553,136,697,165"/><area shape="rect" id="node24" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="752,136,917,165"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="abca2c9d9b60502c7b0a80d6485030acc"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">Drush\Drupal\DrupalKernel::getContainerBuilder </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="DrupalKernel_8php_source.html#l00038">38</a> of file <a class="el" href="DrupalKernel_8php_source.html">DrupalKernel.php</a>.</p>

<p>References <a class="el" href="drush_8inc_source.html#l01252">drush_log()</a>, and <a class="el" href="output_8inc_source.html#l00149">dt()</a>.</p>

<p><div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="classDrush_1_1Drupal_1_1DrupalKernel_abca2c9d9b60502c7b0a80d6485030acc_cgraph.png" border="0" usemap="#classDrush_1_1Drupal_1_1DrupalKernel_abca2c9d9b60502c7b0a80d6485030acc_cgraph" alt=""/></div>
<map name="classDrush_1_1Drupal_1_1DrupalKernel_abca2c9d9b60502c7b0a80d6485030acc_cgraph" id="classDrush_1_1Drupal_1_1DrupalKernel_abca2c9d9b60502c7b0a80d6485030acc_cgraph">
<area shape="rect" id="node3" href="group__logging.html#ga47324b65808524558a488916b150dd51" title="drush_log" alt="" coords="233,27,311,56"/><area shape="rect" id="node18" href="group__outputfunctions.html#ga1218abcb1e27dd3bb412113d1e344d96" title="dt" alt="" coords="253,80,291,109"/><area shape="rect" id="node5" href="group__logging.html#ga10110f5007bd6fd1b7915e9dece4774f" title="_drush_log" alt="" coords="387,27,472,56"/><area shape="rect" id="node7" href="backend_8inc.html#a38490210d77373f3d8492caf4e9a3190" title="drush_backend_packet" alt="" coords="548,32,703,61"/><area shape="rect" id="node9" href="context_8inc.html#ad25559f8d7d753f636fbeac347c29fc5" title="drush_get_context" alt="" coords="771,83,899,112"/><area shape="rect" id="node12" href="classDrush.html#aeda0f4644c7f586f873055d39dd755a5" title="Drush\\logger" alt="" coords="787,5,883,35"/><area shape="rect" id="node14" href="classDrush.html#a83560a0aab97e348848b3615f152af54" title="Drush\\service" alt="" coords="967,71,1068,100"/><area shape="rect" id="node16" href="classDrush.html#abce7035069a9f7517f908b82bdd4dae0" title="Drush\\getContainer" alt="" coords="1119,71,1252,100"/><area shape="rect" id="node20" href="drupal_8inc.html#ad2ccab77d4bc8e7355186f26cd328ac0" title="drush_drupal_major\l_version" alt="" coords="363,133,496,179"/><area shape="rect" id="node28" href="group__outputfunctions.html#ga2391425402626377e6464f1f649f8c65" title="find_legacy_dt_args" alt="" coords="360,80,499,109"/><area shape="rect" id="node22" href="drupal_8inc.html#a203e989fd043d054d774954e2b2dff21" title="drush_drupal_version" alt="" coords="553,136,697,165"/><area shape="rect" id="node24" href="classDrush.html#a104f09419bc8a46c4bf205b49268b3a4" title="Drush\\bootstrapManager" alt="" coords="752,136,917,165"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>lib/Drush/Drupal/<a class="el" href="DrupalKernel_8php_source.html">DrupalKernel.php</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Wed Nov 2 2016 07:30:14 for Drush by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.1.2
</small></address>
</body>
</html>