Commit ea8243e4 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by GitHub

rename library folder to src (#560)

* rename library folder to src

* updated changelog
parent 749b8f23
......@@ -2,6 +2,8 @@
## Unreleased
### Changed
- Renamed folder library to src
- Use PSR-4 class loading
- Updated PHPUnit to v6.5
- Updated required PHP version to >= v7.0
......
......@@ -36,21 +36,21 @@
<arg line="--overview-pyramid=${basedir}/build/pdepend/overview-pyramid.svg"/>
<arg line="--jdepend-chart=${basedir}/build/pdepend/dependencies.svg"/>
<arg line="--jdepend-xml=${basedir}/build/logs/jdepend.xml"/>
<arg line="library"/>
<arg line="src"/>
</exec>
</target>
<!-- Generate pmd.xml -->
<target name="phpmd">
<exec executable="phpmd">
<arg line="library xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml"/>
<arg line="src xml codesize,unusedcode --reportfile ${basedir}/build/logs/pmd.xml"/>
</exec>
</target>
<!-- Generate pmd-cpd.xml -->
<target name="phpcpd">
<exec executable="phpcpd">
<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml library"/>
<arg line="--log-pmd ${basedir}/build/logs/pmd-cpd.xml src"/>
</exec>
</target>
......@@ -61,20 +61,20 @@
<arg value="--report-file=${basedir}/build/logs/checkstyle.xml"/>
<arg value="--standard=PSR2"/>
<arg value="--extensions=php"/>
<arg path="library"/>
<arg path="src"/>
</exec>
</target>
<!-- Generate API documentation -->
<target name="docblox">
<exec executable="docblox">
<arg line="run -d library -t build/api"/>
<arg line="run -d src -t build/api"/>
</exec>
</target>
<target name="phpcb">
<exec executable="phpcb">
<arg line="--log ${basedir}/build/logs --source ${basedir}/library --output ${basedir}/build/code-browser"/>
<arg line="--log ${basedir}/build/logs --source ${basedir}/src --output ${basedir}/build/code-browser"/>
</exec>
</target>
......
......@@ -32,7 +32,7 @@
},
"autoload": {
"psr-4": {
"Solarium\\": "library/"
"Solarium\\": "src/"
}
},
"autoload-dev": {
......
......@@ -22,9 +22,9 @@
<filter>
<whitelist>
<directory suffix=".php">library</directory>
<directory suffix=".php">src</directory>
<exclude>
<file>library/Solarium/Autoloader.php</file>
<file>src/Solarium/Autoloader.php</file>
</exclude>
</whitelist>
</filter>
......
<?xml version="1.0" encoding="UTF-8"?>
<phpunit
<phpunit
backupGlobals="false"
backupStaticAttributes="false"
syntaxCheck="false"
......@@ -16,9 +16,9 @@
<filter>
<whitelist>
<directory suffix=".php">library</directory>
<directory suffix=".php">src</directory>
<exclude>
<file>library/Solarium/Autoloader.php</file>
<file>src/Solarium/Autoloader.php</file>
</exclude>
</whitelist>
</filter>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment