mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/11866] More namespaces
PHPBB3-11866
This commit is contained in:
parent
03639c081c
commit
b27fc70a7d
2 changed files with 5 additions and 5 deletions
|
@ -86,7 +86,7 @@
|
||||||
<p>To use any methods contained with the <code>auth</code> class it first needs to be instantiated. This is best achieved early in the execution of the script in the following manner:</p>
|
<p>To use any methods contained with the <code>auth</code> class it first needs to be instantiated. This is best achieved early in the execution of the script in the following manner:</p>
|
||||||
|
|
||||||
<div class="codebox"><pre>
|
<div class="codebox"><pre>
|
||||||
$auth = new phpbb_auth();
|
$auth = new phpbb\auth\auth();
|
||||||
</pre></div>
|
</pre></div>
|
||||||
|
|
||||||
<p>Once an instance of the class has been created you are free to call the various methods it contains. Please note that should you wish to use the <code>auth_admin</code> methods you will need to instantiate this separately but in the same way.</p>
|
<p>Once an instance of the class has been created you are free to call the various methods it contains. Please note that should you wish to use the <code>auth_admin</code> methods you will need to instantiate this separately but in the same way.</p>
|
||||||
|
|
|
@ -152,12 +152,12 @@ function phpbb_create_update_container($phpbb_root_path, $php_ext, $config_path)
|
||||||
return phpbb_create_compiled_container(
|
return phpbb_create_compiled_container(
|
||||||
$config_file,
|
$config_file,
|
||||||
array(
|
array(
|
||||||
new phpbb_di_extension_config($config_file),
|
new phpbb\di\extension\config($config_file),
|
||||||
new phpbb_di_extension_core($config_path),
|
new phpbb\di\extension\core($config_path),
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
new phpbb_di_pass_collection_pass(),
|
new phpbb\di\pass\collection_pass(),
|
||||||
new phpbb_di_pass_kernel_pass(),
|
new phpbb\di\pass\kernel_pass(),
|
||||||
),
|
),
|
||||||
$phpbb_root_path,
|
$phpbb_root_path,
|
||||||
$php_ext
|
$php_ext
|
||||||
|
|
Loading…
Add table
Reference in a new issue