Skip to content

Commit 75da1ff

Browse files
committed
Переделал пространства имён
1 parent 64af703 commit 75da1ff

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

example/hostcms/meta-generator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
/**
33
* Using the library as an example HostCMS
44
*/
5-
require_once('../../src/PhpStormMetaGenerator/Interfaces/DriverInterface.php');
6-
require_once('../../src/PhpStormMetaGenerator/Interfaces/MetaGeneratorInterface.php');
7-
require_once('../../src/PhpStormMetaGenerator/DriverAbstract.php');
5+
require_once('../../src/PhpStormMetaGenerator/Drivers/DriverInterface.php');
6+
require_once('../../src/PhpStormMetaGenerator/MetaGeneratorInterface.php');
7+
require_once('../../src/PhpStormMetaGenerator/Drivers/DriverAbstract.php');
88
require_once('../../src/PhpStormMetaGenerator/MetaGenerator.php');
99
require_once('../../src/PhpStormMetaGenerator/Drivers/HostCMS/DriverEntities.php');
1010
require_once('../../src/PhpStormMetaGenerator/Drivers/HostCMS/DriverAdminEntities.php');

src/PhpStormMetaGenerator/DriverAbstract.php renamed to src/PhpStormMetaGenerator/Drivers/DriverAbstract.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
<?php
2-
namespace PhpStormMetaGenerator;
2+
namespace PhpStormMetaGenerator\Drivers;
33

44

55
use InvalidArgumentException;
6-
use PhpStormMetaGenerator\Interfaces\DriverInterface;
76

87
/**
98
* Abstract driver class
109
* (Extend this to develop any drivers)
1110
*
1211
* Class DriverAbstract
13-
* @package PhpStormMetaGenerator
12+
* @package PhpStormMetaGenerator\Drivers
1413
*/
1514
abstract class DriverAbstract implements DriverInterface
1615
{

src/PhpStormMetaGenerator/Interfaces/DriverInterface.php renamed to src/PhpStormMetaGenerator/Drivers/DriverInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
2-
namespace PhpStormMetaGenerator\Interfaces;
2+
namespace PhpStormMetaGenerator\Drivers;
33

44

55
/**
66
* Driver interface
77
*
88
* Interface DriverInterface
9-
* @package PhpStormMetaGenerator\Interfaces
9+
* @package PhpStormMetaGenerator\Drivers
1010
*/
1111
interface DriverInterface
1212
{

src/PhpStormMetaGenerator/Drivers/HostCMS/DriverAdminEntities.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
namespace PhpStormMetaGenerator\Drivers\HostCMS;
33

44

5-
use PhpStormMetaGenerator\DriverAbstract;
6-
use PhpStormMetaGenerator\Interfaces\DriverInterface;
5+
use PhpStormMetaGenerator\Drivers\DriverAbstract;
6+
use PhpStormMetaGenerator\Drivers\DriverInterface;
7+
78

89
/**
910
* Driver for HostCMS to search classes at administrator's area.

src/PhpStormMetaGenerator/Drivers/HostCMS/DriverEntities.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44

55
use InvalidArgumentException;
6-
use PhpStormMetaGenerator\DriverAbstract;
7-
use PhpStormMetaGenerator\Interfaces\DriverInterface;
6+
use PhpStormMetaGenerator\Drivers\DriverAbstract;
7+
use PhpStormMetaGenerator\Drivers\DriverInterface;
88

99
/**
1010
* Driver for HostCMS to search entities classes.

src/PhpStormMetaGenerator/MetaGenerator.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44

55
use InvalidArgumentException;
6-
use PhpStormMetaGenerator\Interfaces\MetaGeneratorInterface;
7-
use PhpStormMetaGenerator\Interfaces\DriverInterface;
6+
use PhpStormMetaGenerator\Drivers\DriverInterface;
87

98
/**
109
* PhpStorm meta-file generator.

src/PhpStormMetaGenerator/Interfaces/MetaGeneratorInterface.php renamed to src/PhpStormMetaGenerator/MetaGeneratorInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
<?php
2-
namespace PhpStormMetaGenerator\Interfaces;
2+
namespace PhpStormMetaGenerator;
3+
use PhpStormMetaGenerator\Drivers\DriverInterface;
34

45

56
/**
67
* Meta generator interface
78
*
89
* Interface MetaGeneratorInterface
9-
* @package PhpStormMetaGenerator\Interfaces
10+
* @package PhpStormMetaGenerator
1011
*/
1112
interface MetaGeneratorInterface
1213
{

0 commit comments

Comments
 (0)