Skip to content

Commit 795e2f1

Browse files
authored
Merge pull request #3 from timmit-nl/make-it-a-correct-libary
Make it a correct libary
2 parents c41d442 + f31b99a commit 795e2f1

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ a directory that you specify.
88
Create a file, like `style.php`:
99

1010
```
11-
use ScssPhp\ScssPhp\Server;
11+
use ScssPhp\Server\Server;
1212
1313
$directory = "stylesheets";
1414
@@ -59,7 +59,7 @@ Here's an example of creating a SCSS server that outputs compressed CSS:
5959

6060
```
6161
use ScssPhp\ScssPhp\Compiler;
62-
use ScssPhp\ScssPhp\Server;
62+
use ScssPhp\Server\Server;
6363
6464
$scss = new Compiler();
6565
$scss->setFormatter('ScssPhp\ScssPhp\Formatter\Compressed');

composer.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
{
22
"name": "scssphp/server",
33
"description": "Server for on-the-fly .scss compilation",
4-
"type": "project",
4+
"type": "libary",
5+
"autoload": {
6+
"psr-4": { "ScssPhp\\Server\\": "src/" }
7+
},
8+
"autoload-dev": {
9+
"psr-4": { "ScssPhp\\Server\\Tests\\": "tests/" }
10+
},
511
"require": {
612
"scssphp/scssphp": "^1.0"
713
},

src/Server.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @link http://scssphp.github.io/scssphp
1010
*/
1111

12-
namespace ScssPhp\ScssPhp;
12+
namespace ScssPhp\Server;
1313

1414
use ScssPhp\ScssPhp\Compiler;
1515
use ScssPhp\ScssPhp\Exception\ServerException;

tests/ServerTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @link http://scssphp.github.io/scssphp
1010
*/
1111

12-
namespace ScssPhp\ScssPhp\Tests;
12+
namespace ScssPhp\Server\Tests;
1313

1414
use PHPUnit\Framework\TestCase;
1515
use ScssPhp\ScssPhp\Server;

0 commit comments

Comments
 (0)