Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
beced18
feat: include already used third parties on composer.json
MissAllSunday May 29, 2024
f8f0d30
feat: create new Config::$vendordir var
MissAllSunday May 29, 2024
400d48d
feat: remove references to third party in Sources files
MissAllSunday May 31, 2024
cf14e86
feat: remove third party code in Sources
MissAllSunday May 31, 2024
3fbe2f0
fix: revert changes to Sources/Unicode/Currencies.php
MissAllSunday May 31, 2024
0754117
feat: use composer autoloader for SMF namespace as well as third part…
MissAllSunday Jun 4, 2024
8149eef
revert exploding $rowData['cur_perms']
MissAllSunday Jun 4, 2024
aa94b99
remove function call
MissAllSunday Jun 4, 2024
7a0b0b0
Update Sources/Config.php
MissAllSunday Jun 17, 2024
2925daf
Update .scrutinizer.yml
MissAllSunday Jun 17, 2024
56bb14d
feat: move autoload functionality to its own file
MissAllSunday Sep 24, 2024
fe2d31f
feat: move autoload functionality to its own file
MissAllSunday Sep 24, 2024
1e5b53b
feat: use vendor autoload on ExportProfileData.php
MissAllSunday Sep 24, 2024
fb7f162
feat: update autoload require
MissAllSunday Sep 24, 2024
6c9e619
fix: no need to include vendor folder on ignoring list
MissAllSunday Sep 24, 2024
48bd303
fix: Revert changes to Currencies.php
MissAllSunday Sep 24, 2024
03df23e
feat: move ZxcvbnPhp to composer
MissAllSunday Mar 25, 2025
fa1824a
fix: update composer.lock
MissAllSunday Mar 25, 2025
e8a9758
fix: move code for autoloading to closure where all the checks for ne…
MissAllSunday Apr 25, 2025
25d446e
fix: update readme file and more changes not directly related to the …
MissAllSunday Apr 25, 2025
eb66c7c
fix: update readme file and more changes not directly related to the …
MissAllSunday Apr 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@
->in(__DIR__ . '/Sources/Unicode')
// Don't touch libraries.
->exclude([
'vendor',
'cache',
'other',
'Packages',
'Smileys',
'Sources/minify',
'Sources/ReCaptcha',
'Sources/ZxcvbnPhp',
'Themes',
])
// Skip ssi_example.php.
Expand Down
8 changes: 1 addition & 7 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
filter:
excluded_paths:
- '*.min.js'
- 'Sources/minify/'
- 'Sources/random_compat/'
- 'Sources/ReCaptcha/'
dependency_paths:
- 'Sources/minify/'
- 'Sources/random_compat/'
- 'Sources/ReCaptcha/'
- 'vendor/' # Just to be sure
checks:
php:
variable_existence: true
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ by signing off your contributions, you acknowledge that you can and do license y
* It is enough to include in your commit comment "Signed-off by: " followed by your name and email address (for example: `Signed-off-by: Your Name <youremail@example.com>`)
* an easy way to do so is to define an alias for the git commit command, which includes -s switch (reference: [How to create Git aliases](https://git.wiki.kernel.org/index.php/Aliases))
* send a pull request to us.
* SMF uses third party libraries via composer, if you want to run a local version, please [install composer first](https://getcomposer.org)
and run `composer install`

## How to submit a pull request:
* If you want to send a bug fix for version 3.0, send it to the branch ***release-3.0***
Expand Down
2 changes: 0 additions & 2 deletions Sources/Actions/Admin/ACP.php
Original file line number Diff line number Diff line change
Expand Up @@ -1526,8 +1526,6 @@ public static function getFileVersions(array &$versionOptions): array
);

$ignore_sources = [
Config::$sourcedir . '/minify/*',
Config::$sourcedir . '/ReCaptcha/*',
Config::$sourcedir . '/Tasks/*',
];

Expand Down
115 changes: 0 additions & 115 deletions Sources/Autoloader.php

This file was deleted.

7 changes: 7 additions & 0 deletions Sources/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,11 @@ class Config
*/
public static string $sourcedir;

/**
* Path to where our dependencies are located.
*/
public static string $vendordir;

/**
* Path to the Packages directory.
*
Expand Down Expand Up @@ -959,6 +964,8 @@ public static function set(array $settings): void
self::$sourcedir = self::$boarddir . '/Sources';
}

self::$vendordir = self::$boarddir . '/vendor';

if ((empty(self::$packagesdir) || !is_dir(realpath(self::$packagesdir))) && is_dir(self::$boarddir . '/Packages')) {
self::$packagesdir = self::$boarddir . '/Packages';
}
Expand Down
Loading