-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9f6fef
commit efe18de
Showing
6 changed files
with
24 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
{ | ||
"type": "pre-macro", | ||
"name": "pre/immutable-classes", | ||
"license": "MIT", | ||
"require": { | ||
"pre/plugin": "^0.6" | ||
"pre/plugin": "^0.7.3" | ||
}, | ||
"autoload": { | ||
"files": [ | ||
"src/bootstrap.php" | ||
], | ||
"psr-4": { | ||
"Pre\\ImmutableClasses\\": "src" | ||
} | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^5.0" | ||
"phpunit/phpunit": "^5.0|^6.0" | ||
}, | ||
"autoload-dev": { | ||
"psr-4": { | ||
"Pre\\ImmutableClasses\\": "tests" | ||
} | ||
}, | ||
"extra": { | ||
"macros": [ | ||
"src/macros.yay" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,3 @@ | ||
# Pre Immutable Classes | ||
# Immutable Classes | ||
|
||
Documentation can be found at [preprocess.io](https://preprocess.io/docs#immutable-classes). | ||
|
||
## Versioning | ||
|
||
This library follows [Semver](http://semver.org). According to Semver, you will be able to upgrade to any minor or patch version of this library without any breaking changes to the public API. Semver also requires that we clearly define the public API for this library. | ||
|
||
All methods, with `public` visibility, are part of the public API. All other methods are not part of the public API. Where possible, we'll try to keep `protected` methods backwards-compatible in minor/patch versions, but if you're overriding methods then please test your work before upgrading. | ||
Documentation can be found at [preprocess.io](https://preprocess.io#immutable-classes). |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
<?php | ||
|
||
namespace Yay; | ||
namespace | ||
{ | ||
require __DIR__ . "/../vendor/autoload.php"; | ||
|
||
// let's use a namespace trick, to make non-colliding variables predictable. | ||
putenv("PRE_BASE_DIR=" . __DIR__ . "/../"); | ||
|
||
function md5($value) { | ||
return $value; | ||
Pre\Plugin\addMacroPath(__DIR__ . "/../src/macros.yay"); | ||
} | ||
|
||
putenv("PRE_BASE_DIR=" . __DIR__ . "/.."); | ||
|
||
require __DIR__ . "/../vendor/autoload.php"; | ||
namespace Yay | ||
{ | ||
function md5($value) | ||
{ | ||
return $value; | ||
} | ||
} |