PhpStorm
 
Get 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 supposes that the namespaces in your project are arranged in compliance with the PSR0 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.