Skip to content

Remove interfaces #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 41 commits into from
May 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
7d365cd
add mechanism to extend the os config
Baptouuuu May 18, 2025
f12c0b0
use higher api to build the logger
Baptouuuu May 18, 2025
58699be
make OperatingSystem a final class
Baptouuuu May 23, 2025
0b6660f
typo
Baptouuuu May 23, 2025
31b6171
use promoted properties
Baptouuuu May 23, 2025
ba7bb63
add resilient config
Baptouuuu May 23, 2025
5c22606
remove useless classes
Baptouuuu May 23, 2025
4f4908b
allow to change the default http transport
Baptouuuu May 23, 2025
075fa5b
map the halt object only when retrieved
Baptouuuu May 23, 2025
ebe2d05
compose config mappers
Baptouuuu May 23, 2025
270f66b
apply http transport logger through the config
Baptouuuu May 23, 2025
19fd7ee
remove logs that could be expressed via underlying abstractions
Baptouuuu May 23, 2025
fe0f857
allow to change the way to open sql connections
Baptouuuu May 23, 2025
08aab59
add Config::mapSQLConnection()
Baptouuuu May 23, 2025
14650d2
apply sql logger via the config
Baptouuuu May 23, 2025
02eda6c
add Config::mapServerControl()
Baptouuuu May 23, 2025
f8eb062
apply server control logger via the config
Baptouuuu May 23, 2025
4e7bb96
add Config::mapServerStatus()
Baptouuuu May 24, 2025
2739b55
apply server status logger via the config
Baptouuuu May 24, 2025
16875ca
add Config::mapClock()
Baptouuuu May 24, 2025
08d9906
apply clock logger via the config
Baptouuuu May 24, 2025
16542a9
add Config::mapFileWatch()
Baptouuuu May 24, 2025
1dc3c36
apply file watch logger via the config
Baptouuuu May 24, 2025
57d7bc4
remove Config::caseInsensitiveFilesystem() and add Config::mountFiles…
Baptouuuu May 24, 2025
3fc3c41
add Config::mapFilesystem()
Baptouuuu May 24, 2025
a17c269
apply filesystem logger via the config
Baptouuuu May 24, 2025
f254519
remove logging if a file/directory exists and when a php file is loaded
Baptouuuu May 24, 2025
d18cdb3
remove logger os
Baptouuuu May 24, 2025
eb8d0ac
make Sockets a final class
Baptouuuu May 24, 2025
6c4ec58
make Remote a final class
Baptouuuu May 24, 2025
7cb57b5
make Ports a final class
Baptouuuu May 24, 2025
84c582a
make Filesystem a final class
Baptouuuu May 24, 2025
a8aaab4
make Signals a final class
Baptouuuu May 24, 2025
0fb5dc6
make CurrentProcess a final class
Baptouuuu May 24, 2025
da695e5
remove useless indirection
Baptouuuu May 24, 2025
9a13bbe
simplify OperatingSystem::map() by only modifying the Config
Baptouuuu May 24, 2025
9fdbfe7
defer the access to the config in mappers to give access to the lates…
Baptouuuu May 24, 2025
77491c9
do not expose internal details of the config
Baptouuuu May 24, 2025
7eb35a1
rename Config::of() to ::new() to better identify it is brand new
Baptouuuu May 24, 2025
4176f6a
add missing internal flag
Baptouuuu May 24, 2025
ec74cbe
create the handler inside the wrapper to not expose implementation de…
Baptouuuu May 24, 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
42 changes: 42 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,22 @@

## [Unreleased]

### Added

- `Innmind\OperatingSystem\Config::map()`
- `Innmind\OperatingSystem\Config\Logger`
- `Innmind\OperatingSystem\Config\Resilient`
- `Innmind\OperatingSystem\Config::useHttpTransport()`
- `Innmind\OperatingSystem\Config::mapHttpTransport()`
- `Innmind\OperatingSystem\Config::openSQLConnectionVia()`
- `Innmind\OperatingSystem\Config::mapSQLConnection()`
- `Innmind\OperatingSystem\Config::mapServerControl()`
- `Innmind\OperatingSystem\Config::mapServerStatus()`
- `Innmind\OperatingSystem\Config::mapClock()`
- `Innmind\OperatingSystem\Config::mapFileWatch()`
- `Innmind\OperatingSystem\Config::mountFilesystemVia()`
- `Innmind\OperatingSystem\Config::mapFilesystem()`

### Changed

- Requires `innmind/time-continuum:^4.1.1`
Expand All @@ -23,6 +39,15 @@
- `Innmind\OperatingSystem\Sockets::open()` now returns an `Innmind\Immutable\Attempt`
- `Innmind\OperatingSystem\Sockets::takeOver()` now returns an `Innmind\Immutable\Attempt`
- `Innmind\OperatingSystem\Sockets::connectTo()` now returns an `Innmind\Immutable\Attempt`
- `Innmind\OperatingSystem\OperatingSystem` is now a final class
- `Innmind\OperatingSystem\Sockets` is now a final class
- `Innmind\OperatingSystem\Remote` is now a final class
- `Innmind\OperatingSystem\Ports` is now a final class
- `Innmind\OperatingSystem\Filesystem` is now a final class
- `Innmind\OperatingSystem\CurrentProcess\Signals` is now a final class
- `Innmind\OperatingSystem\CurrentProcess` is now a final class
- `Innmind\OperatingSystem\OperatingSystem::map()` callable must now return a `Config`
- `Innmind\OperatingSystem\Config::of()` has been renamed `::new()`

### Fixed

Expand All @@ -32,6 +57,23 @@

- `Innmind\OperatingSystem\Config::useStreamCapabilities()`
- `Innmind\OperatingSystem\Sockets::watch()`
- `Innmind\OperatingSystem\OperatingSystem\Resilient`
- `Innmind\OperatingSystem\OperatingSystem\Logger`
- `Innmind\OperatingSystem\Config::limitHttpConcurrencyTo()` use `::useHttpTransport()` instead
- `Innmind\OperatingSystem\Config::withHttpHeartbeat()` use `::useHttpTransport()` instead
- `Innmind\OperatingSystem\Config::disableSSLVerification()` use `::useHttpTransport()` instead
- `Innmind\OperatingSystem\Config::caseInsensitiveFilesystem()` use `::mountFilesystemVia()` instead
- The following informations are no longer logged:
- the current process id
- the current process memory
- the signals listener being added/removed
- the signals received by the current process
- temporary files being created
- opened ports
- opened remote sockets
- opened sockets
- if a file/directory exists or not
- when a PHP file is loaded in memory

## 5.2.0 - 2024-07-14

Expand Down
Loading