PhpStorm
 
Get PhpStorm
You are viewing the documentation for an earlier version of PhpStorm.

Move Namespace Dialog

Last modified: 21 July 2022

The dialog opens when you select a PHP namespace to be moved and choose Refactor | Move on the main menu or from the context menu of the selection.

PhpStorm assumes that the namespaces in your project are arranged in compliance with the PSR-0/PSR-4 standard and enforces you to retain the folder structure and the namespace hierarchy in accordance with this standard when moving namespaces.

When you specify a namespace to move a namespace to, PhpStorm automatically updates the Target Destination Directory field, which shows the path to the folder that corresponds to the namespace in question.