Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nacos-config
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Euan游根明
nacos-config
Commits
42f2c9a6
Commit
42f2c9a6
authored
Nov 28, 2023
by
Euan游根明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: init
parent
ce312c3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
nacos-client
nacos-client
+0
-4
Nacos.php
src/Nacos/Nacos.php
+2
-0
No files found.
nacos-client
View file @
42f2c9a6
...
@@ -17,10 +17,6 @@ if (isset($GLOBALS['_composer_autoload_path'])) {
...
@@ -17,10 +17,6 @@ if (isset($GLOBALS['_composer_autoload_path'])) {
}
}
$options
=
getopt
(
''
,
array
(
'prepend:'
));
$options
=
getopt
(
''
,
array
(
'prepend:'
));
if
(
isset
(
$options
[
'prepend'
]))
{
require
$options
[
'prepend'
];
}
require
NACOS_COMPOSER_INSTALL
;
require
NACOS_COMPOSER_INSTALL
;
\Galaxy\NacosClient\Nacos\Nacos
::
run
(
$options
);
\Galaxy\NacosClient\Nacos\Nacos
::
run
(
$options
);
\ No newline at end of file
src/Nacos/Nacos.php
View file @
42f2c9a6
...
@@ -8,6 +8,8 @@ class Nacos
...
@@ -8,6 +8,8 @@ class Nacos
public
static
array
$configs
=
[];
public
static
array
$configs
=
[];
public
static
function
run
(
$options
)
public
static
function
run
(
$options
)
{
{
var_dump
(
$options
);
die
;
self
::
configure
();
self
::
configure
();
$this
->
info
(
'开始拉取配置文件'
);
$this
->
info
(
'开始拉取配置文件'
);
$url
=
self
::
$configs
[
'NACOS_URL'
]
??
''
;
$url
=
self
::
$configs
[
'NACOS_URL'
]
??
''
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment