Compare commits
No commits in common. 'master' and 'Navigator' have entirely different histories.
@ -0,0 +1,400 @@
|
|||||||
|
# ---> VisualStudio
|
||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.rsuser
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Mono auto generated files
|
||||||
|
mono_crash.*
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
[Ww][Ii][Nn]32/
|
||||||
|
[Aa][Rr][Mm]/
|
||||||
|
[Aa][Rr][Mm]64/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
[Ll]ogs/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUnit
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
nunit-*.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# ASP.NET Scaffolding
|
||||||
|
ScaffoldingReadMe.txt
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_h.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*_wpftmp.csproj
|
||||||
|
*.log
|
||||||
|
*.tlog
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Coverlet is a free, cross platform Code Coverage Tool
|
||||||
|
coverage*.json
|
||||||
|
coverage*.xml
|
||||||
|
coverage*.info
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# NuGet Symbol Packages
|
||||||
|
*.snupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
*.appxbundle
|
||||||
|
*.appxupload
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!?*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
*- [Bb]ackup.rdl
|
||||||
|
*- [Bb]ackup ([0-9]).rdl
|
||||||
|
*- [Bb]ackup ([0-9][0-9]).rdl
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated project file (contains which files were open etc.)
|
||||||
|
*.vbp
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace and project file (working project files containing files to include in project)
|
||||||
|
*.dsw
|
||||||
|
*.dsp
|
||||||
|
|
||||||
|
# Visual Studio 6 technical files
|
||||||
|
*.ncb
|
||||||
|
*.aps
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# CodeRush personal settings
|
||||||
|
.cr/personal
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
|
||||||
|
# Local History for Visual Studio
|
||||||
|
.localhistory/
|
||||||
|
|
||||||
|
# Visual Studio History (VSHistory) files
|
||||||
|
.vshistory/
|
||||||
|
|
||||||
|
# BeatPulse healthcheck temp database
|
||||||
|
healthchecksdb
|
||||||
|
|
||||||
|
# Backup folder for Package Reference Convert tool in Visual Studio 2017
|
||||||
|
MigrationBackup/
|
||||||
|
|
||||||
|
# Ionide (cross platform F# VS Code tools) working folder
|
||||||
|
.ionide/
|
||||||
|
|
||||||
|
# Fody - auto-generated XML schema
|
||||||
|
FodyWeavers.xsd
|
||||||
|
|
||||||
|
# VS Code files for those working on multiple tools
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
*.code-workspace
|
||||||
|
|
||||||
|
# Local History for Visual Studio Code
|
||||||
|
.history/
|
||||||
|
|
||||||
|
# Windows Installer files from build outputs
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
*.sln.iml
|
||||||
|
|
@ -0,0 +1,165 @@
|
|||||||
|
<Application x:Class="IHM.App"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
xmlns:conv="clr-namespace:IHM.Converters"
|
||||||
|
StartupUri="MainWindow.xaml">
|
||||||
|
<Application.Resources>
|
||||||
|
|
||||||
|
<conv:Func2WindowPartConverter x:Key="Func2WpConv"/>
|
||||||
|
|
||||||
|
<Style x:Key="BorderRessource" TargetType="Border">
|
||||||
|
<Setter Property="BorderBrush" Value="#63A4FF"/>
|
||||||
|
<Setter Property="BorderThickness" Value="1"/>
|
||||||
|
<Setter Property="Margin" Value="20"/>
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
<Setter Property="Height" Value="30"/>
|
||||||
|
<Setter Property="Width" Value="175"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="UserControl" x:Key="ImageFondRessource">
|
||||||
|
<Setter Property="Background">
|
||||||
|
<Setter.Value>
|
||||||
|
<VisualBrush>
|
||||||
|
<VisualBrush.Visual>
|
||||||
|
<Image Source="./images/fond.jpg">
|
||||||
|
<Image.Effect>
|
||||||
|
<BlurEffect Radius="0"/>
|
||||||
|
</Image.Effect>
|
||||||
|
</Image>
|
||||||
|
</VisualBrush.Visual>
|
||||||
|
</VisualBrush>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="TextBlockRessource" TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="TitreDePage" TargetType="TextBlock">
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="FontFamily" Value="Slab serif"/>
|
||||||
|
<Setter Property="FontSize" Value="30"/>
|
||||||
|
<Setter Property="FontWeight" Value="Bold"/>
|
||||||
|
<Setter Property="DockPanel.Dock" Value="Top"/>
|
||||||
|
<Setter Property="Foreground" Value="White"/>
|
||||||
|
<Setter Property="Margin" Value="20"/>
|
||||||
|
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style TargetType="Button" x:Key="TransparentButtonRessource">
|
||||||
|
<Setter Property="Background" Value="Transparent" />
|
||||||
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border CornerRadius="5" Background="Transparent" BorderBrush="#63A4FF" BorderThickness="1" >
|
||||||
|
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
<Style x:Key="GreenButtonRessource" TargetType="Button">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border CornerRadius="5" BorderBrush="#63A4FF" BorderThickness="1" >
|
||||||
|
<Border.Background>
|
||||||
|
<LinearGradientBrush>
|
||||||
|
<GradientStop Color="#80FF72" Offset="0"/>
|
||||||
|
<GradientStop Color="#7EE8FA" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Border.Background>
|
||||||
|
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="Padding" Value="10"/>
|
||||||
|
<Setter Property="Margin" Value="60,0,0,0"/>
|
||||||
|
<Setter Property="Height" Value="25"/>
|
||||||
|
<Setter Property="Width" Value="200"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<Style x:Key="OrangeButtonRessource" TargetType="Button">
|
||||||
|
<Setter Property="Template">
|
||||||
|
<Setter.Value>
|
||||||
|
<ControlTemplate TargetType="Button">
|
||||||
|
<Border CornerRadius="5" BorderBrush="#63A4FF" BorderThickness="1" >
|
||||||
|
<Border.Background>
|
||||||
|
<LinearGradientBrush>
|
||||||
|
<GradientStop Color="#FBD72B" Offset="0"/>
|
||||||
|
<GradientStop Color="#F9484A" Offset="1"/>
|
||||||
|
</LinearGradientBrush>
|
||||||
|
</Border.Background>
|
||||||
|
<ContentPresenter x:Name="contentPresenter" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
||||||
|
</Border>
|
||||||
|
</ControlTemplate>
|
||||||
|
</Setter.Value>
|
||||||
|
</Setter>
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<SolidColorBrush x:Key="CouleurPrincipale" Color="#23395d"/>
|
||||||
|
<SolidColorBrush x:Key="CouleurBouton" Color="#99425d"/>
|
||||||
|
|
||||||
|
<Style x:Key="BoutonMain" TargetType="Button">
|
||||||
|
<Setter Property="Height" Value="40"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0"/>
|
||||||
|
<Setter Property="Margin" Value="10,10,10,10" />
|
||||||
|
|
||||||
|
<Setter Property="FontSize" Value="16"/>
|
||||||
|
<Setter Property="Foreground" Value="White"/>
|
||||||
|
<Setter Property="Background" Value="{StaticResource CouleurBouton}"/>
|
||||||
|
|
||||||
|
|
||||||
|
<Style.Resources>
|
||||||
|
<Style TargetType="Border">
|
||||||
|
<Setter Property="CornerRadius" Value="20,20,20,20"/>
|
||||||
|
</Style>
|
||||||
|
</Style.Resources>
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsDefault" Value="True">
|
||||||
|
<Setter Property="Background" Value="Black"/>
|
||||||
|
<Trigger.EnterActions>
|
||||||
|
<BeginStoryboard>
|
||||||
|
<Storyboard>
|
||||||
|
<ColorAnimation Duration="0:0:0.5" Storyboard.TargetProperty="(Button.Background).(SolidColorBrush.Color)" To="#23395d"/>
|
||||||
|
</Storyboard>
|
||||||
|
</BeginStoryboard>
|
||||||
|
</Trigger.EnterActions>
|
||||||
|
</Trigger>
|
||||||
|
<Trigger Property ="IsMouseOver" Value="True">
|
||||||
|
<Setter Property= "Opacity" Value="0.3"/>
|
||||||
|
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
|
||||||
|
</Style>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</Application.Resources>
|
||||||
|
</Application>
|
@ -0,0 +1,10 @@
|
|||||||
|
using System.Windows;
|
||||||
|
|
||||||
|
[assembly: ThemeInfo(
|
||||||
|
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// or application resource dictionaries)
|
||||||
|
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
||||||
|
//(used if a resource is not found in the page,
|
||||||
|
// app, or any theme specific resource dictionaries)
|
||||||
|
)]
|
@ -0,0 +1,38 @@
|
|||||||
|
<Window x:Class="IHM.MainWindow"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
Title="MainWindow" Height="450" Width="800">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="0.30*"/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<StackPanel Grid.Column="0" Background="{StaticResource CouleurPrincipale}">
|
||||||
|
|
||||||
|
<Image Source="images/logo.png" Margin="10" Grid.Column="0" Grid.Row="0" Width="75"/>
|
||||||
|
|
||||||
|
<Button Click="Button_Click_TableauDeBord" Content="Tableau de bord" Style="{StaticResource BoutonMain}" IsDefault="True"/>
|
||||||
|
<Button Click="Button_Click_Compte" Content="Compte" Style="{StaticResource BoutonMain}"/>
|
||||||
|
<Button Click="Button_Click_Operation" Content="Opérations" Style="{StaticResource BoutonMain}"/>
|
||||||
|
<Button Click="Button_Click_Echeancier" Content="Echéancier" Style="{StaticResource BoutonMain}"/>
|
||||||
|
<Button Click="Button_Click_Planification" Content="Planification" Style="{StaticResource BoutonMain}"/>
|
||||||
|
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<ContentControl x:Name="contentControl"
|
||||||
|
DataContext="{Binding Nav}"
|
||||||
|
Content="{Binding SelectedUserControlCreator.Value,Converter={StaticResource Func2WpConv}}"
|
||||||
|
Grid.Column="1" Grid.Row="1"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</Window>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCAjouterBanque"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A faire" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCAjouterCompte"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCAjouterEcheance"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCAjouterPlanification"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,41 @@
|
|||||||
|
<UserControl x:Class="IHM.UCBienvenue"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Style="{StaticResource TitreDePage}" >Bienvenue sur Cons'Eco</TextBlock>
|
||||||
|
<Image Source="./images/logo.png" DockPanel.Dock="Top" Height="100" />
|
||||||
|
|
||||||
|
<TextBlock Foreground="Black" FontSize="15" HorizontalAlignment="Center" DockPanel.Dock="Top">
|
||||||
|
La première application d'aide à la gestion de budget personnel ou en entreprise
|
||||||
|
</TextBlock>
|
||||||
|
|
||||||
|
<Grid DockPanel.Dock="Bottom">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<StackPanel>
|
||||||
|
<TextBlock HorizontalAlignment="Center" Margin="50" FontSize="15">
|
||||||
|
Vous pouvez créer un compte
|
||||||
|
</TextBlock>
|
||||||
|
<Button Click="Button_Click_Inscription" Style="{StaticResource GreenButtonRessource}" Height="30" Width="100">
|
||||||
|
<TextBlock Text="Inscription"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
<StackPanel Grid.Column="1">
|
||||||
|
<TextBlock HorizontalAlignment="Center" Margin="50" FontSize="15">
|
||||||
|
Ou vous connecter si vous en possédée déjà un
|
||||||
|
</TextBlock>
|
||||||
|
<Button Click="Button_Click_Connexion" Style="{StaticResource GreenButtonRessource}" Height="30" Width="100">
|
||||||
|
<TextBlock Text="Connexion"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,42 @@
|
|||||||
|
<UserControl x:Class="IHM.UCCompte"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
|
||||||
|
<DockPanel>
|
||||||
|
<StackPanel DockPanel.Dock="Top">
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource TitreDePage}" >Compte</TextBlock>
|
||||||
|
|
||||||
|
<StackPanel DockPanel.Dock="Left" Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
|
<Button Click="Button_Click_Ajouter_Banque" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150" Margin="20">
|
||||||
|
<TextBlock Text="Ajouter une banque" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Click="Button_Click_Supprimer_Banque" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150" Margin="20">
|
||||||
|
<TextBlock Text="Supprimer une banque" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Click="Button_Click_Ajouter_Compte" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150" Margin="20">
|
||||||
|
<TextBlock Text="Ajouter un compte" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<Button Click="Button_Click_Supprimer_Compte" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150" Margin="20">
|
||||||
|
<TextBlock Text="Supprimer un compte" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<Button Click="Button_Click_ModifSolde" DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}" Height="25" Width="170" Margin="20">
|
||||||
|
<TextBlock Text="Modifier votre solde" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<TextBlock VerticalAlignment="Center" Text=" Le solde de votre compte courant est de : ???" Style="{StaticResource TextBlockRessource}" FontSize="16" FontWeight="DemiBold"/>
|
||||||
|
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
|
|
||||||
|
</UserControl>
|
||||||
|
|
@ -0,0 +1,71 @@
|
|||||||
|
<UserControl x:Class="IHM.UCConnexion"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Style="{StaticResource TitreDePage}" >Connexion</TextBlock>
|
||||||
|
<TextBlock DockPanel.Dock="Top" HorizontalAlignment="Center" FontSize="15" Margin="20">Connectez vous à un compte déjà existant</TextBlock>
|
||||||
|
|
||||||
|
<Button Click="Button_Click_Acceuil" Margin="20" DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour à la page d'acceuil"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button DockPanel.Dock="Bottom" Click="Button_Click_Connection" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150">
|
||||||
|
<TextBlock Text="Se connecter" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button DockPanel.Dock="Bottom" Click="Button_Click_Forget_Password" Style="{StaticResource OrangeButtonRessource}" Height="25" Width="170" Margin="20">
|
||||||
|
<TextBlock Text="Mot de passe oublié ?" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource TextBlockRessource}" FontSize="15">Nom d'utilisateur</TextBlock>
|
||||||
|
<StackPanel Grid.Column="1" Margin="30">
|
||||||
|
<TextBlock x:Name="ErrorUserName" HorizontalAlignment="Center" FontSize="15" Foreground="#FF6347" Visibility="Hidden">Veuillez renseigner votre nom d'utilisateurs</TextBlock>
|
||||||
|
<Border Grid.Column="1" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox x:Name="UserName">
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="1" Style="{StaticResource TextBlockRessource}" FontSize="15">Mot de passe</TextBlock>
|
||||||
|
|
||||||
|
<StackPanel Grid.Row="1" Grid.Column="1">
|
||||||
|
<TextBlock x:Name="ErrorPassword" HorizontalAlignment="Center" FontSize="15" Foreground="#FF6347" Visibility="Hidden">Veuillez renseigner votre mot de passe</TextBlock>
|
||||||
|
<Border Style="{StaticResource BorderRessource}">
|
||||||
|
<PasswordBox x:Name="Password">
|
||||||
|
<PasswordBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</PasswordBox.Resources>
|
||||||
|
</PasswordBox>
|
||||||
|
</Border>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,43 @@
|
|||||||
|
<UserControl x:Class="IHM.UCEcheancier"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Style="{StaticResource TitreDePage}" >Echeancier</TextBlock>
|
||||||
|
|
||||||
|
<WrapPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center">
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="Total" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="???" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
</WrapPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<Button Click="Button_Click_Ajouter_Echeance" Style="{StaticResource GreenButtonRessource}" Content="Enregistrer une échéance"/>
|
||||||
|
<Button Click="Button_Click_Supprimer_Echeance" Style="{StaticResource GreenButtonRessource}" Content="Supprimer une échéance"/>
|
||||||
|
</WrapPanel>
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<WrapPanel.Resources>
|
||||||
|
<Style TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Margin" Value="60,10,30,0"/>
|
||||||
|
</Style>
|
||||||
|
</WrapPanel.Resources>
|
||||||
|
<TextBlock Text="Nom"/>
|
||||||
|
<TextBlock Text="Date"/>
|
||||||
|
<TextBlock Text="Paiement"/>
|
||||||
|
<TextBlock Text="Type"/>
|
||||||
|
<TextBlock Text="Crédit"/>
|
||||||
|
<TextBlock Text="Débit"/>
|
||||||
|
</WrapPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCEffectuerCredit"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCEffectuerDebit"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,94 @@
|
|||||||
|
<UserControl x:Class="IHM.UCInscription"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
|
||||||
|
<TextBlock Style="{StaticResource TitreDePage}" >Inscription</TextBlock>
|
||||||
|
<TextBlock DockPanel.Dock="Top" HorizontalAlignment="Center" FontSize="15" Margin="20">Veuillez créer votre compte en retrant vos informations</TextBlock>
|
||||||
|
|
||||||
|
<Button Click="Button_Click_Acceuil" Margin="20" DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour à la page d'acceuil"/>
|
||||||
|
</Button>
|
||||||
|
|
||||||
|
<Button DockPanel.Dock="Bottom" Click="Button_Click_Validation" Style="{StaticResource GreenButtonRessource}" Height="25" Width="150">
|
||||||
|
<TextBlock Text="Valider" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Text="Nom d'utilisateur" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
<Border Grid.Column="1" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox>
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="1" Text="Nom" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
<Border Grid.Column="1" Grid.Row="1" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox>
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="2" Text="Prenom" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
<Border Grid.Column="1" Grid.Row="2" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox>
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="3" Text="Mail" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
<Border Grid.Column="1" Grid.Row="3" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox>
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
|
||||||
|
<TextBlock Grid.Row="4" Text="Mot de passe" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
<Border Grid.Column="1" Grid.Row="4" Style="{StaticResource BorderRessource}">
|
||||||
|
<TextBox>
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
</Border>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,37 @@
|
|||||||
|
<UserControl x:Class="IHM.UCModifSolde"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock DockPanel.Dock="Top" Style="{StaticResource TitreDePage}" >Modification de votre solde</TextBlock>
|
||||||
|
|
||||||
|
<StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal" Margin="20" HorizontalAlignment="Center">
|
||||||
|
<Button Click="Button_Click_Compte" Style="{StaticResource GreenButtonRessource}" Height="25" Width="170">
|
||||||
|
<TextBlock Text="Retour" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
<Button DockPanel.Dock="Bottom" Style="{StaticResource GreenButtonRessource}" Height="25" Width="170" Margin="150,0,0,0">
|
||||||
|
<TextBlock Text="Confirmer" Style="{StaticResource TextBlockRessource}"/>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||||||
|
|
||||||
|
<TextBlock Margin="50" Height="25" Width="80">Nouveau solde</TextBlock>
|
||||||
|
|
||||||
|
<TextBox Margin="50" Height="25" Width="170">
|
||||||
|
<TextBox.Resources>
|
||||||
|
<Style TargetType="{x:Type Border}">
|
||||||
|
<Setter Property="CornerRadius" Value="5"/>
|
||||||
|
</Style>
|
||||||
|
</TextBox.Resources>
|
||||||
|
</TextBox>
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,46 @@
|
|||||||
|
<UserControl x:Class="IHM.UCOperation"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
|
||||||
|
<TextBlock DockPanel.Dock="Top" Text="Opérations" Style="{StaticResource TitreDePage}"/>
|
||||||
|
|
||||||
|
<WrapPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center">
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="Solde" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="???" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
</WrapPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_EffectuerCredit" Content="Effectuer un crédit"/>
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_EffectuerDebit" Content="Effectuer un débit"/>
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_RetirerOperation" Content="Retirer une opération"/>
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_SupprimerOperation" Content="Supprimer une opération"/>
|
||||||
|
</WrapPanel>
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<WrapPanel.Resources>
|
||||||
|
<Style TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Margin" Value="60,10,30,0"/>
|
||||||
|
</Style>
|
||||||
|
</WrapPanel.Resources>
|
||||||
|
<TextBlock Text="Nom"/>
|
||||||
|
<TextBlock Text="Date"/>
|
||||||
|
<TextBlock Text="Paiement"/>
|
||||||
|
<TextBlock Text="Type"/>
|
||||||
|
<TextBlock Text="Crédit"/>
|
||||||
|
<TextBlock Text="Débit"/>
|
||||||
|
</WrapPanel>
|
||||||
|
</StackPanel>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
|
</UserControl>
|
@ -0,0 +1,50 @@
|
|||||||
|
<UserControl x:Class="IHM.UCPlanification"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
|
||||||
|
<TextBlock DockPanel.Dock="Top" Text="Planification" Style="{StaticResource TitreDePage}"/>
|
||||||
|
|
||||||
|
<WrapPanel DockPanel.Dock="Bottom" HorizontalAlignment="Center">
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="Total" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
<Border Style="{StaticResource BorderRessource}" Background="BlueViolet">
|
||||||
|
<TextBlock DockPanel.Dock="Bottom" Text="???" TextAlignment="Center" VerticalAlignment="Center"/>
|
||||||
|
</Border>
|
||||||
|
</WrapPanel>
|
||||||
|
|
||||||
|
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_Ajouter_Planification" Content="Enregistrer une planification"/>
|
||||||
|
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_Supprimer_Planification" Content="supprimer une planification"/>
|
||||||
|
</WrapPanel>
|
||||||
|
<TextBlock Text="Basculement vers échéancier tous les premiers du mois" HorizontalAlignment="Center" FontStyle="Italic"/>
|
||||||
|
<WrapPanel HorizontalAlignment="Center">
|
||||||
|
<WrapPanel.Resources>
|
||||||
|
<Style TargetType="{x:Type TextBlock}">
|
||||||
|
<Setter Property="Margin" Value="60,10,30,0"/>
|
||||||
|
</Style>
|
||||||
|
</WrapPanel.Resources>
|
||||||
|
<TextBlock Text="Nom"/>
|
||||||
|
<TextBlock Text="Date"/>
|
||||||
|
<TextBlock Text="Paiement"/>
|
||||||
|
<TextBlock Text="Type"/>
|
||||||
|
<TextBlock Text="Crédit"/>
|
||||||
|
<TextBlock Text="Débit"/>
|
||||||
|
</WrapPanel>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
||||||
|
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCRetirerOperation"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCSupprimerBanque"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,17 @@
|
|||||||
|
<UserControl x:Class="IHM.UCSupprimerCompte"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCSupprimerEcheance"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCSupprimerOperation"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,16 @@
|
|||||||
|
<UserControl x:Class="IHM.UCSupprimerPlanification"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800"
|
||||||
|
Style="{StaticResource ImageFondRessource}">
|
||||||
|
<DockPanel>
|
||||||
|
<TextBlock Text="A FAIRE" FontSize="40"/>
|
||||||
|
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
|
||||||
|
<TextBlock Text="Retour"/>
|
||||||
|
</Button>
|
||||||
|
</DockPanel>
|
||||||
|
</UserControl>
|
@ -0,0 +1,12 @@
|
|||||||
|
<UserControl x:Class="IHM.UCTableauDeBord"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:IHM"
|
||||||
|
mc:Ignorable="d"
|
||||||
|
d:DesignHeight="450" d:DesignWidth="800">
|
||||||
|
<Grid>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 567 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 97 KiB |
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,10 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -1,30 +1,24 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.1.0" />
|
||||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.2" />
|
<PackageReference Include="xunit" Version="2.4.1" />
|
||||||
<PackageReference Include="xunit" Version="2.4.1" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
</PackageReference>
|
||||||
</PackageReference>
|
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
||||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
<PrivateAssets>all</PrivateAssets>
|
||||||
<PrivateAssets>all</PrivateAssets>
|
</PackageReference>
|
||||||
</PackageReference>
|
</ItemGroup>
|
||||||
</ItemGroup>
|
|
||||||
|
</Project>
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\Data\Data_CI.csproj" />
|
|
||||||
<ProjectReference Include="..\Modele\Model_CI.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
@ -0,0 +1,11 @@
|
|||||||
|
namespace TestsUnitaires
|
||||||
|
{
|
||||||
|
public class UnitTest1
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void Test1()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
FROM php:8.1-apache
|
|
||||||
RUN apt-get update && apt-get install -y mariadb-client
|
|
||||||
RUN docker-php-ext-install mysqli pdo pdo_mysql && docker-php-ext-enable pdo_mysql
|
|
||||||
COPY ./Sources/API /var/www/html/
|
|
||||||
COPY ./Sources/Data /sql/
|
|
||||||
RUN cd /sql/
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 52 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 113 KiB |
@ -1,19 +1 @@
|
|||||||
# Cons'Eco
|
# Cons'Eco
|
||||||
[![Build Status](https://codefirst.iut.uca.fr/api/badges/ConsEcoTeam/ConsEco/status.svg)](https://codefirst.iut.uca.fr/hugo.livet/ConsEco)
|
|
||||||
|
|
||||||
[![Csharp](https://img.shields.io/badge/-CSharp-50C878?style=for-the-badge&logo=csharp)](https://learn.microsoft.com/fr-fr/dotnet/csharp/) [![Xaml](https://img.shields.io/badge/-XAML-6495ED?style=for-the-badge&logo=xaml)](https://learn.microsoft.com/fr-fr/dotnet/desktop/wpf/xaml/?view=netdesktop-6.0) [![.NET/WPF](https://img.shields.io/badge/-.NET/MAUI-B87333?style=for-the-badge&logo=dotnet)](https://learn.microsoft.com/fr-fr/dotnet/maui/what-is-maui?view=net-maui-6.0)
|
|
||||||
|
|
||||||
<br />
|
|
||||||
<div align="center">
|
|
||||||
<a href=https://codefirst.iut.uca.fr/git/hugo.livet/ConsEco>
|
|
||||||
<img src="Documentation_En_Cours/logoaf.png" alt="Logo" width="150" height="160">
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<br />
|
|
||||||
|
|
||||||
## Bienvenue sur Cons'Eco
|
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
[Nous vous conseillons d'aller voir le wiki de ce projet](https://codefirst.iut.uca.fr/git/hugo.livet/ConsEco/wiki)
|
|
@ -1,8 +0,0 @@
|
|||||||
{
|
|
||||||
"require": {
|
|
||||||
"slim/slim": "4.*",
|
|
||||||
"slim/psr7": "^1.6",
|
|
||||||
"zircote/swagger-php": "^4.5",
|
|
||||||
"doctrine/annotations": "^1.14"
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,22 +0,0 @@
|
|||||||
<?php
|
|
||||||
class Database {
|
|
||||||
private $host = 'localhost';
|
|
||||||
private $db_name = 'testAPI';
|
|
||||||
private $username = 'viastolfi';
|
|
||||||
private $password = 'MhhLeCaca1!';
|
|
||||||
private $conn;
|
|
||||||
|
|
||||||
public function connect(){
|
|
||||||
$this->conn = null;
|
|
||||||
|
|
||||||
try{
|
|
||||||
$this->conn = new PDO('mysql:host='.$this->host.';dbname='.$this->db_name, $this->username, $this->password);
|
|
||||||
$this->conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
echo 'Connection Error :'.$e->getMessage();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->conn;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
|
|
||||||
require __DIR__ .'/../vendor/autoload.php';
|
|
||||||
require __DIR__.'/../config/Database.php';
|
|
||||||
|
|
||||||
$app = AppFactory::create();
|
|
||||||
|
|
||||||
$app->get('/', function (Request $request, Response $response, $args) {
|
|
||||||
$response->getBody()->write("Hello world!");
|
|
||||||
return $response;
|
|
||||||
});
|
|
||||||
|
|
||||||
require __DIR__.'/../routes/Inscrit.php';
|
|
||||||
require __DIR__.'/../routes/Banque.php';
|
|
||||||
require __DIR__.'/../routes/Compte.php';
|
|
||||||
require __DIR__.'/../routes/Operation.php';
|
|
||||||
require __DIR__.'/../routes/Planification.php';
|
|
||||||
require __DIR__.'/../routes/Echeance.php';
|
|
||||||
|
|
||||||
$app->run();
|
|
||||||
?>
|
|
@ -1,140 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Banque",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
$app->get('/Banque/', function(Request $request, Response $response){
|
|
||||||
$query = "SELECT * FROM Banque";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->query($query);
|
|
||||||
$inscrits = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($inscrits));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Banque/FromId/', function(Request $request, Response $response,array $args){
|
|
||||||
$id = $request->getParsedBody()["id"];
|
|
||||||
$query = 'SELECT id, nomBanque FROM InscrBanque WHERE idInscrit=:id';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':id', $id, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$inscrit = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($inscrit));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Banque/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$idInscrit = $request->getParsedBody()["idInscrit"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO InscrBanque (nomBanque, idInscrit) VALUES (:nom, :idI)";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':idI', $idInscrit, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->delete('/Banque/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$idInscrit = $request->getParsedBody()["idInscrit"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM InscrBanque WHERE nomBanque=:nom AND idInscrit=:idI";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':idI', $idInscrit, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,116 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Compte",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->post('/Compte/FromIdInscrit/', function(Request $request, Response $response,array $args){
|
|
||||||
$idInscrit = $request->getParsedBody()["id"];
|
|
||||||
$query = 'SELECT * FROM Compte WHERE idInscritBanque=:id';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':id', $idInscrit, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$compte = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($compte));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Compte/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$idInscrit = $request->getParsedBody()["idInscrit"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO Compte (nom, idInscritBanque) VALUES (:nom, :idI)";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':idI', $idInscrit, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->delete('/Compte/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$idInscrit = $request->getParsedBody()["idInscrit"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM Compte WHERE nom=:nom AND idInscritBanque=:idI";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':idI', $idInscrit, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,125 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Echeance",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->post('/Echeance/FromIdCompte/', function(Request $request, Response $response,array $args){
|
|
||||||
$idCompte = $request->getParsedBody()["id"];
|
|
||||||
$query = 'SELECT * FROM Echeancier WHERE compte=:id';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':id', $idCompte, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$ope = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($ope));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Echeance/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$montant = $request->getParsedBody()["montant"];
|
|
||||||
$dateO = $request->getParsedBody()["dateO"];
|
|
||||||
$methodePayement = $request->getParsedBody()["methodePayement"];
|
|
||||||
$isDebit = $request->getParsedBody()["isDebit"];
|
|
||||||
$tag = $request->getParsedBody()["tag"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO Echeancier (compte, nom, montant, dateO, methodePayement, isDebit, tag) SELECT :compte,:nom,:montant, STR_TO_DATE(:dateO, '%d/%m/%Y %H:%i:%s' ), :methodePayement, :isD ,:tag;";
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':montant', $montant, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':dateO', $dateO, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':methodePayement', $methodePayement, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':isD', $isDebit, PDO::PARAM_BOOL);
|
|
||||||
$stmt->bindValue(':tag', $tag, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->delete('/Echeance/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM Echeancier WHERE compte=:compte AND nom=:nom";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,172 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Inscrit",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
$app->get('/Inscrit/', function(Request $request, Response $response){
|
|
||||||
$query = "SELECT * FROM Inscrit";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->query($query);
|
|
||||||
$inscrits = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($inscrits));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Inscrit/FromMail/', function(Request $request, Response $response,array $args){
|
|
||||||
$mail = $request->getParsedBody()["email"];
|
|
||||||
$query = 'SELECT * FROM Inscrit WHERE mail=:mail';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':mail', $mail, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$inscrit = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($inscrit));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->put('/Inscrit/UpdatePassword/', function(Request $request, Response $response, array $args){
|
|
||||||
$mail = $request->getParsedBody()["email"];
|
|
||||||
$password = $request->getParsedBody()["password"];
|
|
||||||
$query = 'UPDATE Inscrit SET mdp=:password WHERE mail=:mail';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':mail', $mail, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':password', $password, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Inscrit/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$prenom = $request->getParsedBody()["prenom"];
|
|
||||||
$mail = $request->getParsedbody()["email"];
|
|
||||||
$password = $request->getParsedBody()["password"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO Inscrit (nom, prenom, mail, mdp) VALUES (:nom, :prenom, :mail, :password);";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':prenom', $prenom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':mail', $mail, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':password', $password, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$app->delete('/Inscrit/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$email = $request->getParsedBody()["email"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM Inscrit WHERE mail=:mail";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':mail', $email, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
?>
|
|
@ -1,127 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Operation",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->post('/Operation/FromIdCompte/', function(Request $request, Response $response,array $args){
|
|
||||||
$idCompte = $request->getParsedBody()["id"];
|
|
||||||
$query = 'SELECT * FROM Operation WHERE compte=:id';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':id', $idCompte, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$ope = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($ope));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Operation/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$montant = $request->getParsedBody()["montant"];
|
|
||||||
$dateO = $request->getParsedBody()["dateO"];
|
|
||||||
$methodePayement = $request->getParsedBody()["methodePayement"];
|
|
||||||
$isDebit = $request->getParsedBody()["isDebit"];
|
|
||||||
$tag = $request->getParsedBody()["tag"];
|
|
||||||
$fromBanque = $request->getParsedBody()["fromBanque"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO Operation (compte, nom, montant, dateO, methodePayement, isDebit, fromBanque, tag) SELECT :compte,:nom,:montant, STR_TO_DATE(:dateO, '%d/%m/%Y %H:%i:%s' ), :methodePayement, :isD, :fromBanque, :tag;";
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':montant', $montant, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':dateO', $dateO, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':methodePayement', $methodePayement, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':isD', $isDebit, PDO::PARAM_BOOL);
|
|
||||||
$stmt->bindValue(':tag', $tag, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':fromBanque', $fromBanque, PDO::PARAM_BOOL);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->delete('/Operation/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM Operation WHERE compte=:compte AND nom=:nom";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,125 +0,0 @@
|
|||||||
<?php
|
|
||||||
use Psr\Http\Message\ResponseInterface as Response;
|
|
||||||
use Psr\Http\Message\ServerRequestInterface as Request;
|
|
||||||
use Slim\Factory\AppFactory;
|
|
||||||
use OpenApi\Annotations as OA;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Info(title="My First API", version="0.1")
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->addBodyParsingMiddleware();
|
|
||||||
$app->addRoutingMiddleware();
|
|
||||||
$app->addErrorMiddleware(true, true, true);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @OA\Get(path="/api/Planification",
|
|
||||||
* @OA\Response(response="200", description="Succes")
|
|
||||||
* @OA\Response(response="500", description="Bdd Error")
|
|
||||||
* )
|
|
||||||
*/
|
|
||||||
|
|
||||||
$app->post('/Planification/FromIdCompte/', function(Request $request, Response $response,array $args){
|
|
||||||
$idCompte = $request->getParsedBody()["id"];
|
|
||||||
$query = 'SELECT * FROM Planification WHERE compte=:id';
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':id', $idCompte, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$stmt->execute();
|
|
||||||
$ope = $stmt->fetchAll(PDO::FETCH_OBJ);
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($ope));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->post('/Planification/add/', function(Request $request, Response $response, array $args){
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
$montant = $request->getParsedBody()["montant"];
|
|
||||||
$dateO = $request->getParsedBody()["dateO"];
|
|
||||||
$methodePayement = $request->getParsedBody()["methodePayement"];
|
|
||||||
$isDebit = $request->getParsedBody()["isDebit"];
|
|
||||||
$tag = $request->getParsedBody()["tag"];
|
|
||||||
|
|
||||||
$query = "INSERT INTO Planification (compte, nom, montant, dateO, methodePayement, isDebit, tag) SELECT :compte,:nom,:montant, STR_TO_DATE(:dateO, '%d/%m/%Y %H:%i:%s' ), :methodePayement, :isD ,:tag;";
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':montant', $montant, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':dateO', $dateO, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':methodePayement', $methodePayement, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':isD', $isDebit, PDO::PARAM_BOOL);
|
|
||||||
$stmt->bindValue(':tag', $tag, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
$app->delete('/Planification/delete/', function (Request $request, Response $response, array $args) {
|
|
||||||
$compte = $request->getParsedBody()["compte"];
|
|
||||||
$nom = $request->getParsedBody()["nom"];
|
|
||||||
|
|
||||||
$query = "DELETE FROM Planification WHERE compte=:compte AND nom=:nom";
|
|
||||||
|
|
||||||
try{
|
|
||||||
$db = new Database();
|
|
||||||
$conn = $db->connect();
|
|
||||||
|
|
||||||
$stmt = $conn->prepare($query);
|
|
||||||
$stmt->bindValue(':compte', $compte, PDO::PARAM_STR);
|
|
||||||
$stmt->bindValue(':nom', $nom, PDO::PARAM_STR);
|
|
||||||
|
|
||||||
$result = $stmt->execute();
|
|
||||||
|
|
||||||
$db = null;
|
|
||||||
$response->getBody()->write(json_encode($result));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(200);
|
|
||||||
|
|
||||||
} catch(PDOException $e){
|
|
||||||
$error = array("message" => $e->getMessage());
|
|
||||||
|
|
||||||
$response->getBody()->write(json_encode($error));
|
|
||||||
return $response
|
|
||||||
->withHeader('content-type', 'application/json')
|
|
||||||
->withStatus(500);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
@ -1,7 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload.php @generated by Composer
|
|
||||||
|
|
||||||
require_once __DIR__ . '/composer/autoload_real.php';
|
|
||||||
|
|
||||||
return ComposerAutoloaderInita934429c0ea4f4482346c5d296943a81::getLoader();
|
|
@ -1,572 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of Composer.
|
|
||||||
*
|
|
||||||
* (c) Nils Adermann <naderman@naderman.de>
|
|
||||||
* Jordi Boggiano <j.boggiano@seld.be>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Composer\Autoload;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
|
|
||||||
*
|
|
||||||
* $loader = new \Composer\Autoload\ClassLoader();
|
|
||||||
*
|
|
||||||
* // register classes with namespaces
|
|
||||||
* $loader->add('Symfony\Component', __DIR__.'/component');
|
|
||||||
* $loader->add('Symfony', __DIR__.'/framework');
|
|
||||||
*
|
|
||||||
* // activate the autoloader
|
|
||||||
* $loader->register();
|
|
||||||
*
|
|
||||||
* // to enable searching the include path (eg. for PEAR packages)
|
|
||||||
* $loader->setUseIncludePath(true);
|
|
||||||
*
|
|
||||||
* In this example, if you try to use a class in the Symfony\Component
|
|
||||||
* namespace or one of its children (Symfony\Component\Console for instance),
|
|
||||||
* the autoloader will first look for the class under the component/
|
|
||||||
* directory, and it will then fallback to the framework/ directory if not
|
|
||||||
* found before giving up.
|
|
||||||
*
|
|
||||||
* This class is loosely based on the Symfony UniversalClassLoader.
|
|
||||||
*
|
|
||||||
* @author Fabien Potencier <fabien@symfony.com>
|
|
||||||
* @author Jordi Boggiano <j.boggiano@seld.be>
|
|
||||||
* @see https://www.php-fig.org/psr/psr-0/
|
|
||||||
* @see https://www.php-fig.org/psr/psr-4/
|
|
||||||
*/
|
|
||||||
class ClassLoader
|
|
||||||
{
|
|
||||||
/** @var ?string */
|
|
||||||
private $vendorDir;
|
|
||||||
|
|
||||||
// PSR-4
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, array<string, int>>
|
|
||||||
*/
|
|
||||||
private $prefixLengthsPsr4 = array();
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, array<int, string>>
|
|
||||||
*/
|
|
||||||
private $prefixDirsPsr4 = array();
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, string>
|
|
||||||
*/
|
|
||||||
private $fallbackDirsPsr4 = array();
|
|
||||||
|
|
||||||
// PSR-0
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, array<string, string[]>>
|
|
||||||
*/
|
|
||||||
private $prefixesPsr0 = array();
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, string>
|
|
||||||
*/
|
|
||||||
private $fallbackDirsPsr0 = array();
|
|
||||||
|
|
||||||
/** @var bool */
|
|
||||||
private $useIncludePath = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var string[]
|
|
||||||
* @psalm-var array<string, string>
|
|
||||||
*/
|
|
||||||
private $classMap = array();
|
|
||||||
|
|
||||||
/** @var bool */
|
|
||||||
private $classMapAuthoritative = false;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool[]
|
|
||||||
* @psalm-var array<string, bool>
|
|
||||||
*/
|
|
||||||
private $missingClasses = array();
|
|
||||||
|
|
||||||
/** @var ?string */
|
|
||||||
private $apcuPrefix;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var self[]
|
|
||||||
*/
|
|
||||||
private static $registeredLoaders = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param ?string $vendorDir
|
|
||||||
*/
|
|
||||||
public function __construct($vendorDir = null)
|
|
||||||
{
|
|
||||||
$this->vendorDir = $vendorDir;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return string[]
|
|
||||||
*/
|
|
||||||
public function getPrefixes()
|
|
||||||
{
|
|
||||||
if (!empty($this->prefixesPsr0)) {
|
|
||||||
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
|
|
||||||
}
|
|
||||||
|
|
||||||
return array();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return array<string, array<int, string>>
|
|
||||||
*/
|
|
||||||
public function getPrefixesPsr4()
|
|
||||||
{
|
|
||||||
return $this->prefixDirsPsr4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return array<string, string>
|
|
||||||
*/
|
|
||||||
public function getFallbackDirs()
|
|
||||||
{
|
|
||||||
return $this->fallbackDirsPsr0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return array<string, string>
|
|
||||||
*/
|
|
||||||
public function getFallbackDirsPsr4()
|
|
||||||
{
|
|
||||||
return $this->fallbackDirsPsr4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return string[] Array of classname => path
|
|
||||||
* @psalm-return array<string, string>
|
|
||||||
*/
|
|
||||||
public function getClassMap()
|
|
||||||
{
|
|
||||||
return $this->classMap;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string[] $classMap Class to filename map
|
|
||||||
* @psalm-param array<string, string> $classMap
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function addClassMap(array $classMap)
|
|
||||||
{
|
|
||||||
if ($this->classMap) {
|
|
||||||
$this->classMap = array_merge($this->classMap, $classMap);
|
|
||||||
} else {
|
|
||||||
$this->classMap = $classMap;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers a set of PSR-0 directories for a given prefix, either
|
|
||||||
* appending or prepending to the ones previously set for this prefix.
|
|
||||||
*
|
|
||||||
* @param string $prefix The prefix
|
|
||||||
* @param string[]|string $paths The PSR-0 root directories
|
|
||||||
* @param bool $prepend Whether to prepend the directories
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function add($prefix, $paths, $prepend = false)
|
|
||||||
{
|
|
||||||
if (!$prefix) {
|
|
||||||
if ($prepend) {
|
|
||||||
$this->fallbackDirsPsr0 = array_merge(
|
|
||||||
(array) $paths,
|
|
||||||
$this->fallbackDirsPsr0
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->fallbackDirsPsr0 = array_merge(
|
|
||||||
$this->fallbackDirsPsr0,
|
|
||||||
(array) $paths
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
$first = $prefix[0];
|
|
||||||
if (!isset($this->prefixesPsr0[$first][$prefix])) {
|
|
||||||
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if ($prepend) {
|
|
||||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
|
||||||
(array) $paths,
|
|
||||||
$this->prefixesPsr0[$first][$prefix]
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->prefixesPsr0[$first][$prefix] = array_merge(
|
|
||||||
$this->prefixesPsr0[$first][$prefix],
|
|
||||||
(array) $paths
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers a set of PSR-4 directories for a given namespace, either
|
|
||||||
* appending or prepending to the ones previously set for this namespace.
|
|
||||||
*
|
|
||||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
|
||||||
* @param string[]|string $paths The PSR-4 base directories
|
|
||||||
* @param bool $prepend Whether to prepend the directories
|
|
||||||
*
|
|
||||||
* @throws \InvalidArgumentException
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function addPsr4($prefix, $paths, $prepend = false)
|
|
||||||
{
|
|
||||||
if (!$prefix) {
|
|
||||||
// Register directories for the root namespace.
|
|
||||||
if ($prepend) {
|
|
||||||
$this->fallbackDirsPsr4 = array_merge(
|
|
||||||
(array) $paths,
|
|
||||||
$this->fallbackDirsPsr4
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
$this->fallbackDirsPsr4 = array_merge(
|
|
||||||
$this->fallbackDirsPsr4,
|
|
||||||
(array) $paths
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
|
|
||||||
// Register directories for a new namespace.
|
|
||||||
$length = strlen($prefix);
|
|
||||||
if ('\\' !== $prefix[$length - 1]) {
|
|
||||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
|
||||||
}
|
|
||||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
|
||||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
|
||||||
} elseif ($prepend) {
|
|
||||||
// Prepend directories for an already registered namespace.
|
|
||||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
|
||||||
(array) $paths,
|
|
||||||
$this->prefixDirsPsr4[$prefix]
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
// Append directories for an already registered namespace.
|
|
||||||
$this->prefixDirsPsr4[$prefix] = array_merge(
|
|
||||||
$this->prefixDirsPsr4[$prefix],
|
|
||||||
(array) $paths
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers a set of PSR-0 directories for a given prefix,
|
|
||||||
* replacing any others previously set for this prefix.
|
|
||||||
*
|
|
||||||
* @param string $prefix The prefix
|
|
||||||
* @param string[]|string $paths The PSR-0 base directories
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function set($prefix, $paths)
|
|
||||||
{
|
|
||||||
if (!$prefix) {
|
|
||||||
$this->fallbackDirsPsr0 = (array) $paths;
|
|
||||||
} else {
|
|
||||||
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers a set of PSR-4 directories for a given namespace,
|
|
||||||
* replacing any others previously set for this namespace.
|
|
||||||
*
|
|
||||||
* @param string $prefix The prefix/namespace, with trailing '\\'
|
|
||||||
* @param string[]|string $paths The PSR-4 base directories
|
|
||||||
*
|
|
||||||
* @throws \InvalidArgumentException
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function setPsr4($prefix, $paths)
|
|
||||||
{
|
|
||||||
if (!$prefix) {
|
|
||||||
$this->fallbackDirsPsr4 = (array) $paths;
|
|
||||||
} else {
|
|
||||||
$length = strlen($prefix);
|
|
||||||
if ('\\' !== $prefix[$length - 1]) {
|
|
||||||
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
|
|
||||||
}
|
|
||||||
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
|
|
||||||
$this->prefixDirsPsr4[$prefix] = (array) $paths;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Turns on searching the include path for class files.
|
|
||||||
*
|
|
||||||
* @param bool $useIncludePath
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function setUseIncludePath($useIncludePath)
|
|
||||||
{
|
|
||||||
$this->useIncludePath = $useIncludePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Can be used to check if the autoloader uses the include path to check
|
|
||||||
* for classes.
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function getUseIncludePath()
|
|
||||||
{
|
|
||||||
return $this->useIncludePath;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Turns off searching the prefix and fallback directories for classes
|
|
||||||
* that have not been registered with the class map.
|
|
||||||
*
|
|
||||||
* @param bool $classMapAuthoritative
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function setClassMapAuthoritative($classMapAuthoritative)
|
|
||||||
{
|
|
||||||
$this->classMapAuthoritative = $classMapAuthoritative;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Should class lookup fail if not found in the current class map?
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function isClassMapAuthoritative()
|
|
||||||
{
|
|
||||||
return $this->classMapAuthoritative;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
|
|
||||||
*
|
|
||||||
* @param string|null $apcuPrefix
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function setApcuPrefix($apcuPrefix)
|
|
||||||
{
|
|
||||||
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The APCu prefix in use, or null if APCu caching is not enabled.
|
|
||||||
*
|
|
||||||
* @return string|null
|
|
||||||
*/
|
|
||||||
public function getApcuPrefix()
|
|
||||||
{
|
|
||||||
return $this->apcuPrefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Registers this instance as an autoloader.
|
|
||||||
*
|
|
||||||
* @param bool $prepend Whether to prepend the autoloader or not
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function register($prepend = false)
|
|
||||||
{
|
|
||||||
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
|
|
||||||
|
|
||||||
if (null === $this->vendorDir) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($prepend) {
|
|
||||||
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
|
|
||||||
} else {
|
|
||||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
|
||||||
self::$registeredLoaders[$this->vendorDir] = $this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Unregisters this instance as an autoloader.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function unregister()
|
|
||||||
{
|
|
||||||
spl_autoload_unregister(array($this, 'loadClass'));
|
|
||||||
|
|
||||||
if (null !== $this->vendorDir) {
|
|
||||||
unset(self::$registeredLoaders[$this->vendorDir]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Loads the given class or interface.
|
|
||||||
*
|
|
||||||
* @param string $class The name of the class
|
|
||||||
* @return true|null True if loaded, null otherwise
|
|
||||||
*/
|
|
||||||
public function loadClass($class)
|
|
||||||
{
|
|
||||||
if ($file = $this->findFile($class)) {
|
|
||||||
includeFile($file);
|
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Finds the path to the file where the class is defined.
|
|
||||||
*
|
|
||||||
* @param string $class The name of the class
|
|
||||||
*
|
|
||||||
* @return string|false The path if found, false otherwise
|
|
||||||
*/
|
|
||||||
public function findFile($class)
|
|
||||||
{
|
|
||||||
// class map lookup
|
|
||||||
if (isset($this->classMap[$class])) {
|
|
||||||
return $this->classMap[$class];
|
|
||||||
}
|
|
||||||
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if (null !== $this->apcuPrefix) {
|
|
||||||
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
|
|
||||||
if ($hit) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$file = $this->findFileWithExtension($class, '.php');
|
|
||||||
|
|
||||||
// Search for Hack files if we are running on HHVM
|
|
||||||
if (false === $file && defined('HHVM_VERSION')) {
|
|
||||||
$file = $this->findFileWithExtension($class, '.hh');
|
|
||||||
}
|
|
||||||
|
|
||||||
if (null !== $this->apcuPrefix) {
|
|
||||||
apcu_add($this->apcuPrefix.$class, $file);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (false === $file) {
|
|
||||||
// Remember that this class does not exist.
|
|
||||||
$this->missingClasses[$class] = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the currently registered loaders indexed by their corresponding vendor directories.
|
|
||||||
*
|
|
||||||
* @return self[]
|
|
||||||
*/
|
|
||||||
public static function getRegisteredLoaders()
|
|
||||||
{
|
|
||||||
return self::$registeredLoaders;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $class
|
|
||||||
* @param string $ext
|
|
||||||
* @return string|false
|
|
||||||
*/
|
|
||||||
private function findFileWithExtension($class, $ext)
|
|
||||||
{
|
|
||||||
// PSR-4 lookup
|
|
||||||
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
|
|
||||||
|
|
||||||
$first = $class[0];
|
|
||||||
if (isset($this->prefixLengthsPsr4[$first])) {
|
|
||||||
$subPath = $class;
|
|
||||||
while (false !== $lastPos = strrpos($subPath, '\\')) {
|
|
||||||
$subPath = substr($subPath, 0, $lastPos);
|
|
||||||
$search = $subPath . '\\';
|
|
||||||
if (isset($this->prefixDirsPsr4[$search])) {
|
|
||||||
$pathEnd = DIRECTORY_SEPARATOR . substr($logicalPathPsr4, $lastPos + 1);
|
|
||||||
foreach ($this->prefixDirsPsr4[$search] as $dir) {
|
|
||||||
if (file_exists($file = $dir . $pathEnd)) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PSR-4 fallback dirs
|
|
||||||
foreach ($this->fallbackDirsPsr4 as $dir) {
|
|
||||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr4)) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PSR-0 lookup
|
|
||||||
if (false !== $pos = strrpos($class, '\\')) {
|
|
||||||
// namespaced class name
|
|
||||||
$logicalPathPsr0 = substr($logicalPathPsr4, 0, $pos + 1)
|
|
||||||
. strtr(substr($logicalPathPsr4, $pos + 1), '_', DIRECTORY_SEPARATOR);
|
|
||||||
} else {
|
|
||||||
// PEAR-like class name
|
|
||||||
$logicalPathPsr0 = strtr($class, '_', DIRECTORY_SEPARATOR) . $ext;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($this->prefixesPsr0[$first])) {
|
|
||||||
foreach ($this->prefixesPsr0[$first] as $prefix => $dirs) {
|
|
||||||
if (0 === strpos($class, $prefix)) {
|
|
||||||
foreach ($dirs as $dir) {
|
|
||||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PSR-0 fallback dirs
|
|
||||||
foreach ($this->fallbackDirsPsr0 as $dir) {
|
|
||||||
if (file_exists($file = $dir . DIRECTORY_SEPARATOR . $logicalPathPsr0)) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// PSR-0 include paths.
|
|
||||||
if ($this->useIncludePath && $file = stream_resolve_include_path($logicalPathPsr0)) {
|
|
||||||
return $file;
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Scope isolated include.
|
|
||||||
*
|
|
||||||
* Prevents access to $this/self from included files.
|
|
||||||
*
|
|
||||||
* @param string $file
|
|
||||||
* @return void
|
|
||||||
* @private
|
|
||||||
*/
|
|
||||||
function includeFile($file)
|
|
||||||
{
|
|
||||||
include $file;
|
|
||||||
}
|
|
@ -1,350 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This file is part of Composer.
|
|
||||||
*
|
|
||||||
* (c) Nils Adermann <naderman@naderman.de>
|
|
||||||
* Jordi Boggiano <j.boggiano@seld.be>
|
|
||||||
*
|
|
||||||
* For the full copyright and license information, please view the LICENSE
|
|
||||||
* file that was distributed with this source code.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Composer;
|
|
||||||
|
|
||||||
use Composer\Autoload\ClassLoader;
|
|
||||||
use Composer\Semver\VersionParser;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* This class is copied in every Composer installed project and available to all
|
|
||||||
*
|
|
||||||
* See also https://getcomposer.org/doc/07-runtime.md#installed-versions
|
|
||||||
*
|
|
||||||
* To require its presence, you can require `composer-runtime-api ^2.0`
|
|
||||||
*/
|
|
||||||
class InstalledVersions
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* @var mixed[]|null
|
|
||||||
* @psalm-var array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}|array{}|null
|
|
||||||
*/
|
|
||||||
private static $installed;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var bool|null
|
|
||||||
*/
|
|
||||||
private static $canGetVendors;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @var array[]
|
|
||||||
* @psalm-var array<string, array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
|
||||||
*/
|
|
||||||
private static $installedByVendor = array();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of all package names which are present, either by being installed, replaced or provided
|
|
||||||
*
|
|
||||||
* @return string[]
|
|
||||||
* @psalm-return list<string>
|
|
||||||
*/
|
|
||||||
public static function getInstalledPackages()
|
|
||||||
{
|
|
||||||
$packages = array();
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
$packages[] = array_keys($installed['versions']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (1 === \count($packages)) {
|
|
||||||
return $packages[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a list of all package names with a specific type e.g. 'library'
|
|
||||||
*
|
|
||||||
* @param string $type
|
|
||||||
* @return string[]
|
|
||||||
* @psalm-return list<string>
|
|
||||||
*/
|
|
||||||
public static function getInstalledPackagesByType($type)
|
|
||||||
{
|
|
||||||
$packagesByType = array();
|
|
||||||
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
foreach ($installed['versions'] as $name => $package) {
|
|
||||||
if (isset($package['type']) && $package['type'] === $type) {
|
|
||||||
$packagesByType[] = $name;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $packagesByType;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks whether the given package is installed
|
|
||||||
*
|
|
||||||
* This also returns true if the package name is provided or replaced by another package
|
|
||||||
*
|
|
||||||
* @param string $packageName
|
|
||||||
* @param bool $includeDevRequirements
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function isInstalled($packageName, $includeDevRequirements = true)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (isset($installed['versions'][$packageName])) {
|
|
||||||
return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Checks whether the given package satisfies a version constraint
|
|
||||||
*
|
|
||||||
* e.g. If you want to know whether version 2.3+ of package foo/bar is installed, you would call:
|
|
||||||
*
|
|
||||||
* Composer\InstalledVersions::satisfies(new VersionParser, 'foo/bar', '^2.3')
|
|
||||||
*
|
|
||||||
* @param VersionParser $parser Install composer/semver to have access to this class and functionality
|
|
||||||
* @param string $packageName
|
|
||||||
* @param string|null $constraint A version constraint to check for, if you pass one you have to make sure composer/semver is required by your package
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function satisfies(VersionParser $parser, $packageName, $constraint)
|
|
||||||
{
|
|
||||||
$constraint = $parser->parseConstraints($constraint);
|
|
||||||
$provided = $parser->parseConstraints(self::getVersionRanges($packageName));
|
|
||||||
|
|
||||||
return $provided->matches($constraint);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns a version constraint representing all the range(s) which are installed for a given package
|
|
||||||
*
|
|
||||||
* It is easier to use this via isInstalled() with the $constraint argument if you need to check
|
|
||||||
* whether a given version of a package is installed, and not just whether it exists
|
|
||||||
*
|
|
||||||
* @param string $packageName
|
|
||||||
* @return string Version constraint usable with composer/semver
|
|
||||||
*/
|
|
||||||
public static function getVersionRanges($packageName)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (!isset($installed['versions'][$packageName])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
$ranges = array();
|
|
||||||
if (isset($installed['versions'][$packageName]['pretty_version'])) {
|
|
||||||
$ranges[] = $installed['versions'][$packageName]['pretty_version'];
|
|
||||||
}
|
|
||||||
if (array_key_exists('aliases', $installed['versions'][$packageName])) {
|
|
||||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['aliases']);
|
|
||||||
}
|
|
||||||
if (array_key_exists('replaced', $installed['versions'][$packageName])) {
|
|
||||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['replaced']);
|
|
||||||
}
|
|
||||||
if (array_key_exists('provided', $installed['versions'][$packageName])) {
|
|
||||||
$ranges = array_merge($ranges, $installed['versions'][$packageName]['provided']);
|
|
||||||
}
|
|
||||||
|
|
||||||
return implode(' || ', $ranges);
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $packageName
|
|
||||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
|
||||||
*/
|
|
||||||
public static function getVersion($packageName)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (!isset($installed['versions'][$packageName])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($installed['versions'][$packageName]['version'])) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $installed['versions'][$packageName]['version'];
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $packageName
|
|
||||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as version, use satisfies or getVersionRanges if you need to know if a given version is present
|
|
||||||
*/
|
|
||||||
public static function getPrettyVersion($packageName)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (!isset($installed['versions'][$packageName])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($installed['versions'][$packageName]['pretty_version'])) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $installed['versions'][$packageName]['pretty_version'];
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $packageName
|
|
||||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as reference
|
|
||||||
*/
|
|
||||||
public static function getReference($packageName)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (!isset($installed['versions'][$packageName])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!isset($installed['versions'][$packageName]['reference'])) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $installed['versions'][$packageName]['reference'];
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $packageName
|
|
||||||
* @return string|null If the package is being replaced or provided but is not really installed, null will be returned as install path. Packages of type metapackages also have a null install path.
|
|
||||||
*/
|
|
||||||
public static function getInstallPath($packageName)
|
|
||||||
{
|
|
||||||
foreach (self::getInstalled() as $installed) {
|
|
||||||
if (!isset($installed['versions'][$packageName])) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
return isset($installed['versions'][$packageName]['install_path']) ? $installed['versions'][$packageName]['install_path'] : null;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new \OutOfBoundsException('Package "' . $packageName . '" is not installed');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array
|
|
||||||
* @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}
|
|
||||||
*/
|
|
||||||
public static function getRootPackage()
|
|
||||||
{
|
|
||||||
$installed = self::getInstalled();
|
|
||||||
|
|
||||||
return $installed[0]['root'];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the raw installed.php data for custom implementations
|
|
||||||
*
|
|
||||||
* @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}
|
|
||||||
*/
|
|
||||||
public static function getRawData()
|
|
||||||
{
|
|
||||||
@trigger_error('getRawData only returns the first dataset loaded, which may not be what you expect. Use getAllRawData() instead which returns all datasets for all autoloaders present in the process.', E_USER_DEPRECATED);
|
|
||||||
|
|
||||||
if (null === self::$installed) {
|
|
||||||
// only require the installed.php file if this file is loaded from its dumped location,
|
|
||||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
|
||||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
|
||||||
self::$installed = include __DIR__ . '/installed.php';
|
|
||||||
} else {
|
|
||||||
self::$installed = array();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return self::$installed;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns the raw data of all installed.php which are currently loaded for custom implementations
|
|
||||||
*
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
|
||||||
*/
|
|
||||||
public static function getAllRawData()
|
|
||||||
{
|
|
||||||
return self::getInstalled();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Lets you reload the static array from another file
|
|
||||||
*
|
|
||||||
* This is only useful for complex integrations in which a project needs to use
|
|
||||||
* this class but then also needs to execute another project's autoloader in process,
|
|
||||||
* and wants to ensure both projects have access to their version of installed.php.
|
|
||||||
*
|
|
||||||
* A typical case would be PHPUnit, where it would need to make sure it reads all
|
|
||||||
* the data it needs from this class, then call reload() with
|
|
||||||
* `require $CWD/vendor/composer/installed.php` (or similar) as input to make sure
|
|
||||||
* the project in which it runs can then also use this class safely, without
|
|
||||||
* interference between PHPUnit's dependencies and the project's dependencies.
|
|
||||||
*
|
|
||||||
* @param array[] $data A vendor/composer/installed.php data set
|
|
||||||
* @return void
|
|
||||||
*
|
|
||||||
* @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>} $data
|
|
||||||
*/
|
|
||||||
public static function reload($data)
|
|
||||||
{
|
|
||||||
self::$installed = $data;
|
|
||||||
self::$installedByVendor = array();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return array[]
|
|
||||||
* @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string, type: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string, type?: string}>}>
|
|
||||||
*/
|
|
||||||
private static function getInstalled()
|
|
||||||
{
|
|
||||||
if (null === self::$canGetVendors) {
|
|
||||||
self::$canGetVendors = method_exists('Composer\Autoload\ClassLoader', 'getRegisteredLoaders');
|
|
||||||
}
|
|
||||||
|
|
||||||
$installed = array();
|
|
||||||
|
|
||||||
if (self::$canGetVendors) {
|
|
||||||
foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) {
|
|
||||||
if (isset(self::$installedByVendor[$vendorDir])) {
|
|
||||||
$installed[] = self::$installedByVendor[$vendorDir];
|
|
||||||
} elseif (is_file($vendorDir.'/composer/installed.php')) {
|
|
||||||
$installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
|
|
||||||
if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
|
|
||||||
self::$installed = $installed[count($installed) - 1];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if (null === self::$installed) {
|
|
||||||
// only require the installed.php file if this file is loaded from its dumped location,
|
|
||||||
// and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
|
|
||||||
if (substr(__DIR__, -8, 1) !== 'C') {
|
|
||||||
self::$installed = require __DIR__ . '/installed.php';
|
|
||||||
} else {
|
|
||||||
self::$installed = array();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
$installed[] = self::$installed;
|
|
||||||
|
|
||||||
return $installed;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
Copyright (c) Nils Adermann, Jordi Boggiano
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is furnished
|
|
||||||
to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
@ -1,15 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_classmap.php @generated by Composer
|
|
||||||
|
|
||||||
$vendorDir = dirname(dirname(__FILE__));
|
|
||||||
$baseDir = dirname($vendorDir);
|
|
||||||
|
|
||||||
return array(
|
|
||||||
'Attribute' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
|
||||||
'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
|
|
||||||
'PhpToken' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
|
||||||
'Stringable' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
|
||||||
'UnhandledMatchError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
|
||||||
'ValueError' => $vendorDir . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
|
||||||
);
|
|
@ -1,14 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_files.php @generated by Composer
|
|
||||||
|
|
||||||
$vendorDir = dirname(dirname(__FILE__));
|
|
||||||
$baseDir = dirname($vendorDir);
|
|
||||||
|
|
||||||
return array(
|
|
||||||
'7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php',
|
|
||||||
'320cde22f66dd4f5d3fd621d3e88b98f' => $vendorDir . '/symfony/polyfill-ctype/bootstrap.php',
|
|
||||||
'a4a119a56e50fbb293281d9a48007e0e' => $vendorDir . '/symfony/polyfill-php80/bootstrap.php',
|
|
||||||
'253c157292f75eb38082b5acb06f3f01' => $vendorDir . '/nikic/fast-route/src/functions.php',
|
|
||||||
'6e3fae29631ef280660b3cdad06f25a8' => $vendorDir . '/symfony/deprecation-contracts/function.php',
|
|
||||||
);
|
|
@ -1,9 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_namespaces.php @generated by Composer
|
|
||||||
|
|
||||||
$vendorDir = dirname(dirname(__FILE__));
|
|
||||||
$baseDir = dirname($vendorDir);
|
|
||||||
|
|
||||||
return array(
|
|
||||||
);
|
|
@ -1,26 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_psr4.php @generated by Composer
|
|
||||||
|
|
||||||
$vendorDir = dirname(dirname(__FILE__));
|
|
||||||
$baseDir = dirname($vendorDir);
|
|
||||||
|
|
||||||
return array(
|
|
||||||
'Symfony\\Polyfill\\Php80\\' => array($vendorDir . '/symfony/polyfill-php80'),
|
|
||||||
'Symfony\\Polyfill\\Ctype\\' => array($vendorDir . '/symfony/polyfill-ctype'),
|
|
||||||
'Symfony\\Component\\Yaml\\' => array($vendorDir . '/symfony/yaml'),
|
|
||||||
'Symfony\\Component\\Finder\\' => array($vendorDir . '/symfony/finder'),
|
|
||||||
'Slim\\Psr7\\' => array($vendorDir . '/slim/psr7/src'),
|
|
||||||
'Slim\\' => array($vendorDir . '/slim/slim/Slim'),
|
|
||||||
'Psr\\Log\\' => array($vendorDir . '/psr/log/src'),
|
|
||||||
'Psr\\Http\\Server\\' => array($vendorDir . '/psr/http-server-handler/src', $vendorDir . '/psr/http-server-middleware/src'),
|
|
||||||
'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-factory/src', $vendorDir . '/psr/http-message/src'),
|
|
||||||
'Psr\\Container\\' => array($vendorDir . '/psr/container/src'),
|
|
||||||
'Psr\\Cache\\' => array($vendorDir . '/psr/cache/src'),
|
|
||||||
'OpenApi\\' => array($vendorDir . '/zircote/swagger-php/src'),
|
|
||||||
'Fig\\Http\\Message\\' => array($vendorDir . '/fig/http-message-util/src'),
|
|
||||||
'FastRoute\\' => array($vendorDir . '/nikic/fast-route/src'),
|
|
||||||
'Doctrine\\Deprecations\\' => array($vendorDir . '/doctrine/deprecations/lib/Doctrine/Deprecations'),
|
|
||||||
'Doctrine\\Common\\Lexer\\' => array($vendorDir . '/doctrine/lexer/src'),
|
|
||||||
'Doctrine\\Common\\Annotations\\' => array($vendorDir . '/doctrine/annotations/lib/Doctrine/Common/Annotations'),
|
|
||||||
);
|
|
@ -1,80 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_real.php @generated by Composer
|
|
||||||
|
|
||||||
class ComposerAutoloaderInita934429c0ea4f4482346c5d296943a81
|
|
||||||
{
|
|
||||||
private static $loader;
|
|
||||||
|
|
||||||
public static function loadClassLoader($class)
|
|
||||||
{
|
|
||||||
if ('Composer\Autoload\ClassLoader' === $class) {
|
|
||||||
require __DIR__ . '/ClassLoader.php';
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @return \Composer\Autoload\ClassLoader
|
|
||||||
*/
|
|
||||||
public static function getLoader()
|
|
||||||
{
|
|
||||||
if (null !== self::$loader) {
|
|
||||||
return self::$loader;
|
|
||||||
}
|
|
||||||
|
|
||||||
require __DIR__ . '/platform_check.php';
|
|
||||||
|
|
||||||
spl_autoload_register(array('ComposerAutoloaderInita934429c0ea4f4482346c5d296943a81', 'loadClassLoader'), true, true);
|
|
||||||
self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
|
|
||||||
spl_autoload_unregister(array('ComposerAutoloaderInita934429c0ea4f4482346c5d296943a81', 'loadClassLoader'));
|
|
||||||
|
|
||||||
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
|
|
||||||
if ($useStaticLoader) {
|
|
||||||
require __DIR__ . '/autoload_static.php';
|
|
||||||
|
|
||||||
call_user_func(\Composer\Autoload\ComposerStaticInita934429c0ea4f4482346c5d296943a81::getInitializer($loader));
|
|
||||||
} else {
|
|
||||||
$map = require __DIR__ . '/autoload_namespaces.php';
|
|
||||||
foreach ($map as $namespace => $path) {
|
|
||||||
$loader->set($namespace, $path);
|
|
||||||
}
|
|
||||||
|
|
||||||
$map = require __DIR__ . '/autoload_psr4.php';
|
|
||||||
foreach ($map as $namespace => $path) {
|
|
||||||
$loader->setPsr4($namespace, $path);
|
|
||||||
}
|
|
||||||
|
|
||||||
$classMap = require __DIR__ . '/autoload_classmap.php';
|
|
||||||
if ($classMap) {
|
|
||||||
$loader->addClassMap($classMap);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$loader->register(true);
|
|
||||||
|
|
||||||
if ($useStaticLoader) {
|
|
||||||
$includeFiles = Composer\Autoload\ComposerStaticInita934429c0ea4f4482346c5d296943a81::$files;
|
|
||||||
} else {
|
|
||||||
$includeFiles = require __DIR__ . '/autoload_files.php';
|
|
||||||
}
|
|
||||||
foreach ($includeFiles as $fileIdentifier => $file) {
|
|
||||||
composerRequirea934429c0ea4f4482346c5d296943a81($fileIdentifier, $file);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $loader;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $fileIdentifier
|
|
||||||
* @param string $file
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function composerRequirea934429c0ea4f4482346c5d296943a81($fileIdentifier, $file)
|
|
||||||
{
|
|
||||||
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
|
|
||||||
$GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
|
|
||||||
|
|
||||||
require $file;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,143 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// autoload_static.php @generated by Composer
|
|
||||||
|
|
||||||
namespace Composer\Autoload;
|
|
||||||
|
|
||||||
class ComposerStaticInita934429c0ea4f4482346c5d296943a81
|
|
||||||
{
|
|
||||||
public static $files = array (
|
|
||||||
'7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php',
|
|
||||||
'320cde22f66dd4f5d3fd621d3e88b98f' => __DIR__ . '/..' . '/symfony/polyfill-ctype/bootstrap.php',
|
|
||||||
'a4a119a56e50fbb293281d9a48007e0e' => __DIR__ . '/..' . '/symfony/polyfill-php80/bootstrap.php',
|
|
||||||
'253c157292f75eb38082b5acb06f3f01' => __DIR__ . '/..' . '/nikic/fast-route/src/functions.php',
|
|
||||||
'6e3fae29631ef280660b3cdad06f25a8' => __DIR__ . '/..' . '/symfony/deprecation-contracts/function.php',
|
|
||||||
);
|
|
||||||
|
|
||||||
public static $prefixLengthsPsr4 = array (
|
|
||||||
'S' =>
|
|
||||||
array (
|
|
||||||
'Symfony\\Polyfill\\Php80\\' => 23,
|
|
||||||
'Symfony\\Polyfill\\Ctype\\' => 23,
|
|
||||||
'Symfony\\Component\\Yaml\\' => 23,
|
|
||||||
'Symfony\\Component\\Finder\\' => 25,
|
|
||||||
'Slim\\Psr7\\' => 10,
|
|
||||||
'Slim\\' => 5,
|
|
||||||
),
|
|
||||||
'P' =>
|
|
||||||
array (
|
|
||||||
'Psr\\Log\\' => 8,
|
|
||||||
'Psr\\Http\\Server\\' => 16,
|
|
||||||
'Psr\\Http\\Message\\' => 17,
|
|
||||||
'Psr\\Container\\' => 14,
|
|
||||||
'Psr\\Cache\\' => 10,
|
|
||||||
),
|
|
||||||
'O' =>
|
|
||||||
array (
|
|
||||||
'OpenApi\\' => 8,
|
|
||||||
),
|
|
||||||
'F' =>
|
|
||||||
array (
|
|
||||||
'Fig\\Http\\Message\\' => 17,
|
|
||||||
'FastRoute\\' => 10,
|
|
||||||
),
|
|
||||||
'D' =>
|
|
||||||
array (
|
|
||||||
'Doctrine\\Deprecations\\' => 22,
|
|
||||||
'Doctrine\\Common\\Lexer\\' => 22,
|
|
||||||
'Doctrine\\Common\\Annotations\\' => 28,
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
public static $prefixDirsPsr4 = array (
|
|
||||||
'Symfony\\Polyfill\\Php80\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/symfony/polyfill-php80',
|
|
||||||
),
|
|
||||||
'Symfony\\Polyfill\\Ctype\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/symfony/polyfill-ctype',
|
|
||||||
),
|
|
||||||
'Symfony\\Component\\Yaml\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/symfony/yaml',
|
|
||||||
),
|
|
||||||
'Symfony\\Component\\Finder\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/symfony/finder',
|
|
||||||
),
|
|
||||||
'Slim\\Psr7\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/slim/psr7/src',
|
|
||||||
),
|
|
||||||
'Slim\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/slim/slim/Slim',
|
|
||||||
),
|
|
||||||
'Psr\\Log\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/psr/log/src',
|
|
||||||
),
|
|
||||||
'Psr\\Http\\Server\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/psr/http-server-handler/src',
|
|
||||||
1 => __DIR__ . '/..' . '/psr/http-server-middleware/src',
|
|
||||||
),
|
|
||||||
'Psr\\Http\\Message\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/psr/http-factory/src',
|
|
||||||
1 => __DIR__ . '/..' . '/psr/http-message/src',
|
|
||||||
),
|
|
||||||
'Psr\\Container\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/psr/container/src',
|
|
||||||
),
|
|
||||||
'Psr\\Cache\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/psr/cache/src',
|
|
||||||
),
|
|
||||||
'OpenApi\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/zircote/swagger-php/src',
|
|
||||||
),
|
|
||||||
'Fig\\Http\\Message\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/fig/http-message-util/src',
|
|
||||||
),
|
|
||||||
'FastRoute\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/nikic/fast-route/src',
|
|
||||||
),
|
|
||||||
'Doctrine\\Deprecations\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/doctrine/deprecations/lib/Doctrine/Deprecations',
|
|
||||||
),
|
|
||||||
'Doctrine\\Common\\Lexer\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/doctrine/lexer/src',
|
|
||||||
),
|
|
||||||
'Doctrine\\Common\\Annotations\\' =>
|
|
||||||
array (
|
|
||||||
0 => __DIR__ . '/..' . '/doctrine/annotations/lib/Doctrine/Common/Annotations',
|
|
||||||
),
|
|
||||||
);
|
|
||||||
|
|
||||||
public static $classMap = array (
|
|
||||||
'Attribute' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Attribute.php',
|
|
||||||
'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
|
|
||||||
'PhpToken' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/PhpToken.php',
|
|
||||||
'Stringable' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/Stringable.php',
|
|
||||||
'UnhandledMatchError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php',
|
|
||||||
'ValueError' => __DIR__ . '/..' . '/symfony/polyfill-php80/Resources/stubs/ValueError.php',
|
|
||||||
);
|
|
||||||
|
|
||||||
public static function getInitializer(ClassLoader $loader)
|
|
||||||
{
|
|
||||||
return \Closure::bind(function () use ($loader) {
|
|
||||||
$loader->prefixLengthsPsr4 = ComposerStaticInita934429c0ea4f4482346c5d296943a81::$prefixLengthsPsr4;
|
|
||||||
$loader->prefixDirsPsr4 = ComposerStaticInita934429c0ea4f4482346c5d296943a81::$prefixDirsPsr4;
|
|
||||||
$loader->classMap = ComposerStaticInita934429c0ea4f4482346c5d296943a81::$classMap;
|
|
||||||
|
|
||||||
}, null, ClassLoader::class);
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
@ -1,224 +0,0 @@
|
|||||||
<?php return array(
|
|
||||||
'root' => array(
|
|
||||||
'pretty_version' => 'dev-master',
|
|
||||||
'version' => 'dev-master',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../../',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd',
|
|
||||||
'name' => '__root__',
|
|
||||||
'dev' => true,
|
|
||||||
),
|
|
||||||
'versions' => array(
|
|
||||||
'__root__' => array(
|
|
||||||
'pretty_version' => 'dev-master',
|
|
||||||
'version' => 'dev-master',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../../',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '0d6979f482a4dc4159775749125b647077c1dbcd',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'doctrine/annotations' => array(
|
|
||||||
'pretty_version' => '1.14.1',
|
|
||||||
'version' => '1.14.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../doctrine/annotations',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '9e034d7a70032d422169f27d8759e8d84abb4f51',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'doctrine/deprecations' => array(
|
|
||||||
'pretty_version' => 'v1.0.0',
|
|
||||||
'version' => '1.0.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../doctrine/deprecations',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'doctrine/lexer' => array(
|
|
||||||
'pretty_version' => '2.0.0',
|
|
||||||
'version' => '2.0.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../doctrine/lexer',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '3cf140b81e55d5d640f73367d829db7e3023ef69',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'fig/http-message-util' => array(
|
|
||||||
'pretty_version' => '1.1.5',
|
|
||||||
'version' => '1.1.5.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../fig/http-message-util',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '9d94dc0154230ac39e5bf89398b324a86f63f765',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'nikic/fast-route' => array(
|
|
||||||
'pretty_version' => 'v1.3.0',
|
|
||||||
'version' => '1.3.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../nikic/fast-route',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '181d480e08d9476e61381e04a71b34dc0432e812',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/cache' => array(
|
|
||||||
'pretty_version' => '3.0.0',
|
|
||||||
'version' => '3.0.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/cache',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'aa5030cfa5405eccfdcb1083ce040c2cb8d253bf',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/container' => array(
|
|
||||||
'pretty_version' => '2.0.2',
|
|
||||||
'version' => '2.0.2.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/container',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'c71ecc56dfe541dbd90c5360474fbc405f8d5963',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/http-factory' => array(
|
|
||||||
'pretty_version' => '1.0.1',
|
|
||||||
'version' => '1.0.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/http-factory',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '12ac7fcd07e5b077433f5f2bee95b3a771bf61be',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/http-factory-implementation' => array(
|
|
||||||
'dev_requirement' => false,
|
|
||||||
'provided' => array(
|
|
||||||
0 => '1.0',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'psr/http-message' => array(
|
|
||||||
'pretty_version' => '1.0.1',
|
|
||||||
'version' => '1.0.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/http-message',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'f6561bf28d520154e4b0ec72be95418abe6d9363',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/http-message-implementation' => array(
|
|
||||||
'dev_requirement' => false,
|
|
||||||
'provided' => array(
|
|
||||||
0 => '1.0',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
'psr/http-server-handler' => array(
|
|
||||||
'pretty_version' => '1.0.1',
|
|
||||||
'version' => '1.0.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/http-server-handler',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'aff2f80e33b7f026ec96bb42f63242dc50ffcae7',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/http-server-middleware' => array(
|
|
||||||
'pretty_version' => '1.0.1',
|
|
||||||
'version' => '1.0.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/http-server-middleware',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '2296f45510945530b9dceb8bcedb5cb84d40c5f5',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'psr/log' => array(
|
|
||||||
'pretty_version' => '3.0.0',
|
|
||||||
'version' => '3.0.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../psr/log',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'fe5ea303b0887d5caefd3d431c3e61ad47037001',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'ralouphie/getallheaders' => array(
|
|
||||||
'pretty_version' => '3.0.3',
|
|
||||||
'version' => '3.0.3.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../ralouphie/getallheaders',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '120b605dfeb996808c31b6477290a714d356e822',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'slim/psr7' => array(
|
|
||||||
'pretty_version' => '1.6',
|
|
||||||
'version' => '1.6.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../slim/psr7',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '3471c22c1a0d26c51c78f6aeb06489d38cf46a4d',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'slim/slim' => array(
|
|
||||||
'pretty_version' => '4.11.0',
|
|
||||||
'version' => '4.11.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../slim/slim',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'b0f4ca393ea037be9ac7292ba7d0a34d18bac0c7',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'symfony/deprecation-contracts' => array(
|
|
||||||
'pretty_version' => 'v3.2.0',
|
|
||||||
'version' => '3.2.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '1ee04c65529dea5d8744774d474e7cbd2f1206d3',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'symfony/finder' => array(
|
|
||||||
'pretty_version' => 'v6.2.0',
|
|
||||||
'version' => '6.2.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../symfony/finder',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'eb2355f69519e4ef33f1835bca4c935f5d42e570',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'symfony/polyfill-ctype' => array(
|
|
||||||
'pretty_version' => 'v1.27.0',
|
|
||||||
'version' => '1.27.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '5bbc823adecdae860bb64756d639ecfec17b050a',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'symfony/polyfill-php80' => array(
|
|
||||||
'pretty_version' => 'v1.27.0',
|
|
||||||
'version' => '1.27.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => '7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'symfony/yaml' => array(
|
|
||||||
'pretty_version' => 'v6.2.0',
|
|
||||||
'version' => '6.2.0.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../symfony/yaml',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'f2570f21bd4adc3589aa3133323273995109bae0',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
'zircote/swagger-php' => array(
|
|
||||||
'pretty_version' => '4.5.1',
|
|
||||||
'version' => '4.5.1.0',
|
|
||||||
'type' => 'library',
|
|
||||||
'install_path' => __DIR__ . '/../zircote/swagger-php',
|
|
||||||
'aliases' => array(),
|
|
||||||
'reference' => 'eb84fb4d65a327e604812fbddc6c27f69b9ed6e2',
|
|
||||||
'dev_requirement' => false,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
);
|
|
@ -1,26 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
// platform_check.php @generated by Composer
|
|
||||||
|
|
||||||
$issues = array();
|
|
||||||
|
|
||||||
if (!(PHP_VERSION_ID >= 80100)) {
|
|
||||||
$issues[] = 'Your Composer dependencies require a PHP version ">= 8.1.0". You are running ' . PHP_VERSION . '.';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($issues) {
|
|
||||||
if (!headers_sent()) {
|
|
||||||
header('HTTP/1.1 500 Internal Server Error');
|
|
||||||
}
|
|
||||||
if (!ini_get('display_errors')) {
|
|
||||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
|
||||||
fwrite(STDERR, 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . implode(PHP_EOL, $issues) . PHP_EOL.PHP_EOL);
|
|
||||||
} elseif (!headers_sent()) {
|
|
||||||
echo 'Composer detected issues in your platform:' . PHP_EOL.PHP_EOL . str_replace('You are running '.PHP_VERSION.'.', '', implode(PHP_EOL, $issues)) . PHP_EOL.PHP_EOL;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
trigger_error(
|
|
||||||
'Composer detected issues in your platform: ' . implode(' ', $issues),
|
|
||||||
E_USER_ERROR
|
|
||||||
);
|
|
||||||
}
|
|
@ -1,19 +0,0 @@
|
|||||||
Copyright (c) 2006-2013 Doctrine Project
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
||||||
this software and associated documentation files (the "Software"), to deal in
|
|
||||||
the Software without restriction, including without limitation the rights to
|
|
||||||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
||||||
of the Software, and to permit persons to whom the Software is furnished to do
|
|
||||||
so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
@ -1,24 +0,0 @@
|
|||||||
⚠️ PHP 8 introduced
|
|
||||||
[attributes](https://www.php.net/manual/en/language.attributes.overview.php),
|
|
||||||
which are a native replacement for annotations. As such, this library is
|
|
||||||
considered feature complete, and should receive exclusively bugfixes and
|
|
||||||
security fixes.
|
|
||||||
|
|
||||||
# Doctrine Annotations
|
|
||||||
|
|
||||||
[![Build Status](https://github.com/doctrine/annotations/workflows/Continuous%20Integration/badge.svg?label=build)](https://github.com/doctrine/persistence/actions)
|
|
||||||
[![Dependency Status](https://www.versioneye.com/package/php--doctrine--annotations/badge.png)](https://www.versioneye.com/package/php--doctrine--annotations)
|
|
||||||
[![Reference Status](https://www.versioneye.com/php/doctrine:annotations/reference_badge.svg)](https://www.versioneye.com/php/doctrine:annotations/references)
|
|
||||||
[![Total Downloads](https://poser.pugx.org/doctrine/annotations/downloads.png)](https://packagist.org/packages/doctrine/annotations)
|
|
||||||
[![Latest Stable Version](https://img.shields.io/packagist/v/doctrine/annotations.svg?label=stable)](https://packagist.org/packages/doctrine/annotations)
|
|
||||||
|
|
||||||
Docblock Annotations Parser library (extracted from [Doctrine Common](https://github.com/doctrine/common)).
|
|
||||||
|
|
||||||
## Documentation
|
|
||||||
|
|
||||||
See the [doctrine-project website](https://www.doctrine-project.org/projects/doctrine-annotations/en/latest/index.html).
|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
When making a pull request, make sure your changes follow the
|
|
||||||
[Coding Standard Guidelines](https://www.doctrine-project.org/projects/doctrine-coding-standard/en/current/reference/index.html#introduction).
|
|
@ -1,72 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "doctrine/annotations",
|
|
||||||
"description": "Docblock Annotations Parser",
|
|
||||||
"license": "MIT",
|
|
||||||
"type": "library",
|
|
||||||
"keywords": [
|
|
||||||
"annotations",
|
|
||||||
"docblock",
|
|
||||||
"parser"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Guilherme Blanco",
|
|
||||||
"email": "guilhermeblanco@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Roman Borschel",
|
|
||||||
"email": "roman@code-factory.org"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Benjamin Eberlei",
|
|
||||||
"email": "kontakt@beberlei.de"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Jonathan Wage",
|
|
||||||
"email": "jonwage@gmail.com"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "Johannes Schmitt",
|
|
||||||
"email": "schmittjoh@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"homepage": "https://www.doctrine-project.org/projects/annotations.html",
|
|
||||||
"require": {
|
|
||||||
"php": "^7.1 || ^8.0",
|
|
||||||
"ext-tokenizer": "*",
|
|
||||||
"doctrine/lexer": "^1 || ^2",
|
|
||||||
"psr/cache": "^1 || ^2 || ^3"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"doctrine/cache": "^1.11 || ^2.0",
|
|
||||||
"doctrine/coding-standard": "^9 || ^10",
|
|
||||||
"phpstan/phpstan": "~1.4.10 || ^1.8.0",
|
|
||||||
"phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
|
|
||||||
"symfony/cache": "^4.4 || ^5.4 || ^6",
|
|
||||||
"vimeo/psalm": "^4.10"
|
|
||||||
},
|
|
||||||
"suggest": {
|
|
||||||
"php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations"
|
|
||||||
},
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"Doctrine\\Common\\Annotations\\": "lib/Doctrine/Common/Annotations"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"autoload-dev": {
|
|
||||||
"psr-4": {
|
|
||||||
"Doctrine\\Performance\\Common\\Annotations\\": "tests/Doctrine/Performance/Common/Annotations",
|
|
||||||
"Doctrine\\Tests\\Common\\Annotations\\": "tests/Doctrine/Tests/Common/Annotations"
|
|
||||||
},
|
|
||||||
"files": [
|
|
||||||
"tests/Doctrine/Tests/Common/Annotations/Fixtures/functions.php",
|
|
||||||
"tests/Doctrine/Tests/Common/Annotations/Fixtures/SingleClassLOC1000.php"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"config": {
|
|
||||||
"allow-plugins": {
|
|
||||||
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
||||||
},
|
|
||||||
"sort-packages": true
|
|
||||||
}
|
|
||||||
}
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue