Changed method scopes.
Fix bug in where constraints for optional parameters.
Fix resource path.
Merge branch '4.0'
Remove App::attachDebugger() since it no longer used anywhere.

Signed-off-by: crynobone <crynobone@gmail.com>
tabs mixes with space ocd.

Signed-off-by: crynobone <crynobone@gmail.com>
Merge pull request #2570 from crynobone/patch/debugger

Remove App::attachDebugger() since it no longer used anywhere.