Skip to content

Commit c79099c

Browse files
author
Martin Brecht-Precht
committed
Added common namepsace. Separated the HandlerInterface and DispatcherInterface namespaces.
1 parent bbc2783 commit c79099c

File tree

5 files changed

+53
-3
lines changed

5 files changed

+53
-3
lines changed

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
],
2020
"autoload": {
2121
"psr-4": {
22-
"Markdom\\HandlerInterface\\": "src"
22+
"Markdom\\Common\\": "src/Common",
23+
"Markdom\\DispatcherInterface\\": "src/DispatcherInterface",
24+
"Markdom\\HandlerInterface\\": "src/HandlerInterface"
2325
}
2426
},
2527
"require": {

src/Common/BlockType.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Markdom\Common;
4+
5+
/**
6+
* Class BlockType
7+
*
8+
* @package Markdom\Common
9+
*/
10+
final class BlockType
11+
{
12+
13+
const TYPE_CODE = 'CODE';
14+
const TYPE_DIVISION = 'DIVISION';
15+
const TYPE_HEADING = 'HEADING';
16+
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
17+
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
18+
const TYPE_LIST_ITEM = 'LIST_ITEM';
19+
const TYPE_PARAGRAPH = 'PARAGRAPH';
20+
const TYPE_QUOTE = 'QUOTE';
21+
const TYPE_HTML = 'HTML';
22+
23+
}

src/Common/ContentType.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
namespace Markdom\Common;
4+
5+
/**
6+
* Class ContentType
7+
*
8+
* @package Markdom\Common
9+
*/
10+
final class ContentType
11+
{
12+
13+
const TYPE_CODE = 'CODE';
14+
const TYPE_DIVISION = 'DIVISION';
15+
const TYPE_HEADING = 'HEADING';
16+
const TYPE_UNORDERED_LIST = 'UNORDERED_LIST';
17+
const TYPE_ORDERED_LIST = 'ORDERED_LIST';
18+
const TYPE_LIST_ITEM = 'LIST_ITEM';
19+
const TYPE_PARAGRAPH = 'PARAGRAPH';
20+
const TYPE_QUOTE = 'QUOTE';
21+
const TYPE_HTML = 'HTML';
22+
23+
}

src/DispatcherInterface.php renamed to src/DispatcherInterface/DispatcherInterface.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
<?php
22

3-
namespace Markdom\HandlerInterface;
3+
namespace Markdom\DispatcherInterface;
4+
5+
use Markdom\HandlerInterface\HandlerInterface;
46

57
/**
68
* Interface DispatcherInterface
79
*
8-
* @package Markdom\HandlerInterface
10+
* @package Markdom\DispatcherInterface
911
*/
1012
interface DispatcherInterface
1113
{
File renamed without changes.

0 commit comments

Comments
 (0)