Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize modulesDB and update xdebug.ini #1108

Merged
merged 2 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion application/modules/admin/mappers/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function getModules()
/**
* Gets all not installed modules.
*
* @return ModuleModel[]|Array[]
* @return ModuleModel[]|[]
*/
public function getModulesNotInstalled()
{
Expand All @@ -60,6 +60,7 @@ public function getModulesNotInstalled()
}
}

$modulesDB = [];
$removeModule = ['admin', 'install', 'sample', 'error'];
$modulesDir = array_diff($modulesDir, $removeModule);

Expand Down
25 changes: 14 additions & 11 deletions development/vagrant/xdebug.ini
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@

; This switch controls whether Xdebug should try to contact a debug client which
; is listening on the host and port as set with the settings xdebug.remote_host
; and xdebug.remote_port. If a connection can not be established the script will
; just continue as if this setting was Off.
xdebug.remote_enable = On
; This setting controls which Xdebug features are enabled.
; debug: Enables Step Debugging. This can be used to step through your code while it is running,
; and analyse values of variables.
; xdebug.mode=debug should be used instead of xdebug.remote_enable.
xdebug.mode = debug

; If enabled, the xdebug.remote_host setting is ignored and Xdebug will try to connect
; to the client that made the HTTP request. It checks the $_SERVER['REMOTE_ADDR'] variable
; to find out which IP address to use. Please note that there is no filter available,
; and anybody who can connect to the webserver will then be able to start a debugging session,
; even if their address does not match xdebug.remote_host.
xdebug.remote_connect_back = on
; If enabled, Xdebug will first try to connect to the client that made the HTTP request. It checks the
; $_SERVER['HTTP_X_FORWARDED_FOR'] and $_SERVER['REMOTE_ADDR'] variables to find out which hostname or IP address to use.
; If xdebug.client_discovery_header is configured, then the $_SERVER variable with that configured name will be checked
; instead of the default variables.
; If Xdebug can not connect to a debugging client as found in one of the HTTP headers, it will fall back to the hostname
; or IP address as configured by the xdebug.client_host setting.
; This setting does not apply for debugging through the CLI, as the $_SERVER header variables are not available there.
; xdebug.remote_connect_back was replaced by xdebug.discover_client_host.
xdebug.discover_client_host = true

; Controls the amount of array children and object's properties are shown when
; variables are displayed with either xdebug_var_dump(), xdebug.show_local_vars
Expand Down