-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
integrate composer and use composer autoloader, remove files of libra…
…ries loaded with composer, PHP -> 5.5 (already used in many files)
- Loading branch information
Showing
28 changed files
with
126 additions
and
2,313 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 |
---|---|---|
|
@@ -11,3 +11,5 @@ application/modules/smilies/static/img | |
web.config | ||
robots.txt | ||
.user.ini | ||
|
||
/vendor/ |
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
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
Oops, something went wrong.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arbeitest du hier noch dran oder übernimmst Teile davon? Ansonsten würde ich gerne den Teil übernehmen, welcher password_compat entfernt.
https://github.com/blackcoder87/Ilch-2.0/commit/743f7d58a2667c31e5161c8982806dad6e051b61
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich bin gerade im Urlaub :) sowie ich dafür Zeit habe schau ich noch mal drüber...Ich denke mal zu nächste Woche.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also Ich finde Composer ist keine schlechte lösung...das vereinfacht natürlich einiges. Ich würde auch eher die anderen fragen was sie davon halten.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wie sieht das aus mit dem Composer auf Webspace?
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Muss nicht installiert werden, man müsste "nur" das Skript ändern, dass das "Ilch 2.0"-Archiv erstellt, welches man runterladen kann. Dort muss composer install ausgeführt werden, bevor die Dateien in das Archiv gepackt werden.
Wenn alle dafür wären, könnte ich den Branch mergen und das Buildscript entsprechend anpassen.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ich bin dafür.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wofür ist der Composer den genau? Hab zwar ein bisschen gegoogelt aber so recht konnte ich nichts mit den Infos anfangen
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://getcomposer.org/doc/00-intro.md
Das erklärt es denke ich ganz gut.
Wäre jedenfalls ne sehr gute Sache.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also hätten wir folgende Vorteile? (jBBCode als Beispiel)
Fehlt noch was?
Wie läuft das mit Konfigurationsdateien von z.B. CKEditor?
Auch dürften wir keine modifizierten Versionen von z.B. CKEditor haben, damit wir Composer nutzen können oder? (Aktuell sieht es aus als hätten wir da was dran geändert)
Leider wird anscheinend noch nichts was von Composer heruntergeladen wird irgendwie verifiziert (wie bei unserem Ilch-Updater).
composer/composer#38
composer/composer#4022
😨
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also im Paket, was wir zum Download anbieten, würde ich das vendor Verzeichnis schon mit ausliefern. Ansonsten müssten die Benutzer selbst Composer haben und den Befehl
composer install
ausführen müssen.Alternativ könnte man dies in Installations/Update Prozess integrieren (http://stackoverflow.com/questions/17219436/run-composer-with-a-php-script-in-browser). Früher gab es Hoster, die keine Verbindung zu anderen Hosts aufbauen konnten, dort würde das auch nicht gehen. Ich weiß allerdings nicht, ob sich das mittlerweile geändert hat.
Vorteile:
composer update
Nachteile:
Um die Sache mit dem Verifizieren anzusprechen. Gibt es noch nicht, wie es aussieht. Allerdings werden die Pakete mittlerweile nur noch über https heruntergeladen und das Archiv mit einer Checksumme überprüft. Also es wird kein anderes Archiv verwendet werden, als das was in der composer.lock festgehalten ist. Ggf. müsste man das nochmal genau überprüfen und Änderungen vornehmen, da in composer.lock in diesem Branch z.B. gerade keine shasum drin steht.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wenn nur wir den Composer ausführen um bequem alle Bibliotheken in den richtigen Versionen herunterladen zu können, dann habe ich auf jeden Fall nichts gegen das Einbinden vom Composer.
Die shasum für die genutzen Bibliotheken sollten wir noch in die composer.lock eintragen, nachdem wir überprüft haben ob die Bibliotheken in Ordnung sind. Anscheinend verweigert composer install die Installation, wenn die shasum nicht passt - das ist gut. :)
http://stackoverflow.com/questions/31910786/what-is-shasum-in-composer-lock
In den Installations/Update-Prozess würde ich das noch nicht einbauen.
In diesem Branch steht auch noch paar mal PHP 5.5, anstatt 5.6.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Naja der Branch ist ja älter, noch zu der Zeit erstellt, als es im master noch auf PHP 5.4 stand.
Ich würde alles nötige natürlich nochmal überarbeiten, bevor ich es in den master merge.
b8678c1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ja, habe es nur zur Sicherheit erwähnt. :)